What will be the output of the following code?

1.10 What will be the output of the following code?
struct abc { int a;
int b; } v[3], *p;
main() { p=v; p->a=3;
p->b=p->a;
printf (“%d %d”,v[0].a, v[0].b); }
A) 3 4
B) 4 3
C) Any garbage values
D) 3 3


Leave a Reply