A
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;
}
- Correct Answer - Option(D)
- Views: 1
- Filed under category Data Structure and Algorithms (DSA)
- Hashtags:
Discusssion
Login to discuss.