C - Structures,Unions - Discussion

You Are Here :: Home > C > Structures,Unions - Discussion

 



Q.

What is the output of this 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
C. 16 D. Can't be estimated due to ambigous initialization of array

Answer: Option B
Explaination:

No Explanation



Discussion

Your Comments Goes here...
NameDiscussion