Q. Pick the best statement for the below program snippet:
Code:struct {int a[2];} arr[] = {1,2};
β
Correct Answer: (C)
No compile error and it’ll create array arr of 1 element. Each of the element of arr contain a struct field of int array of 2 elements. arr[0]. a[0] would be 1 and arr[0].a[1] would be 2.