What is the output of this C code?

			  		

Loading

โœช Choose the correct option.

What is the output of this C code?


#include
typedef struct p *q;
struct p
{
int x; char y; q ptr;
};
int main()
{
struct p p = {1, 2, &p};
printf("%d
", p.ptr->ptr->x);
return 0;
}

A. Compile time error
B. Segmentation fault
C. Undefined behavior
D. 1