โช 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;
}
#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;
}