Q84
Comment on the output of the following C code. #include struct temp int a; int b; int c; ; main() struct temp p[] = 1, 2, 3, 4, 5, 6, 7, 8, 9;
A.
No Compile time error, generates an array of structure of size 3
AnswerB.
No Compile time error, generates an array of structure of size 9
C.
Compile time error, illegal declaration of a multidimensional array
D.
Compile time error, illegal assignment to members of structure
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board