1.

Comment on the output of the following C code.
#include <stdio.h>
struct Number
{
int n1;
int n2;
int n3;
};
main()
{
struct Number num[] = {{12, 22, 32}, {24, 25, 26}, {27, 28, 29}};
}

A. No Compile time error, generates an array of structure of size 9
B. Compile time error, illegal declaration of a multidimensional array
C. Compile time error, illegal assignment to members of structure
D. No Compile time error, generates an array of structure of size 3
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs