Vidyalelo
C Programming · Q70

Structure and Union

Programming · C Programming · question 70

Q70

What will be the output of the following C code? (Assuming size of int be 4) #include struct temp int a; int b; int c; p[] = 0; main() printf("%d", sizeof(p));

A.
4
B.
12
Answer
C.
16
D.
Can't be estimated due to ambiguous initialization of array

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board