What is the output of this C code? Please explain what is happening at line no. 12
#include <stdio.h>
int main()
{
int i = 97, *p = &i;
foo(&p);
printf("%d ", *p);
return 0;
}
void foo(int **p)
int j = 2;
*p = &j;
printf("%d ", **p);
64.3k questions
77.9k answers
244k comments
80.0k users