Examveda

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

A. 4

B. 12

C. 16

D. Can't be estimated due to ambiguous initialization of array

Answer: Option B


This Question Belongs to C Program >> Structure And Union

Join The Discussion

Related Questions on Structure and Union