-
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}};
}
-
- No Compile time error, generates an array of structure of size 9
- Compile time error, illegal declaration of a multidimensional array
- Compile time error, illegal assignment to members of structure
- No Compile time error, generates an array of structure of size 3
- None of these
Correct Option: D
No Compile time error, generates an array of structure of size 3