Consider the following program in C language : #in...
Guiding State PSC aspirants since 2016 50,000+ students · 1,000+ final selections Exam Calendar Results Call 9116926003
pscnotes
Pick your state
MPSC Prelims previous year questions

Consider the following program in C language : #include<stdio.h> main() { int i; int *pi=&i; scanf("%d", pi); printf("%d\n", i+5); } Which one of the following is true?

Asked in Meghalaya PSC QUESTION BOOKLET: SERIES I

  1. Compilation error
  2. Run-time error
  3. The output is 5 more than the address of variable i
  4. The output is 5 more than the integer value entered as input

Answer under review: our editors are checking this question. Try the other MPSC Prelims previous year questions questions meanwhile.

More MPSC Prelims previous year questions questions

All 1,944 MPSC Prelims previous year questions questions →