Q.

What will be output if you will compile and execute the following c code? #include<stdio.h>
int * call();
int main(){ int *ptr;
ptr=call();
printf("%d",*ptr); return 0;
} int * call(){
int a=25;
a++;
return &a;
}

A. 25
B. 26
C. any adress
D. garbage value
Answer» D. garbage value
2.9k
0
Do you find this helpful?
15

Discussion

No comments yet

Related MCQs