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;} (Solved)

1. 25

2. 26

3. any adress

4. garbage value

  • d. garbage value
Subscribe Now

Get All Updates & News