-
What will be the output of the following C code?
#include <stdio.h>
typedef struct p *q;
struct p
{
int n1;
char n2;
q ptr;
};
typedef struct p *q;
int main()
{
struct p p = {101, 202, &p};
printf("%d\n", p.ptr->n1);
return 0;
}
-
- Compilation Error
- Garbage value
- 101
- 202
- None of these
Correct Option: C
101