1.

What will be the output of the following C code?
#include <stdio.h>
typedef struct N *ptr2;
struct N
{
int n1;
char n2;
ptr2 ptr1;
};
int main()
{
struct N n = {111, 222, &n};
printf("%d n", n.ptr1->ptr1->n1);
return 0;
}

A. 111
B. 222
C. Compilation Error
D. Garbage value
E. None of these
Answer» B. 222


Discussion

No Comment Found

Related MCQs