1.

Which of the following statements correct about the below program?_x000D_ #include_x000D_ _x000D_ int main()_x000D_ {_x000D_ union a_x000D_ {_x000D_ int i;_x000D_ char ch[2];_x000D_ };_x000D_ union a u1 = {512};_x000D_ union a u2 = {0, 2};_x000D_ return 0;_x000D_ }_x000D_ _x000D_ _x000D_ 1:_x000D_ u2 CANNOT be initialized as shown._x000D_ _x000D_ _x000D_ 2:_x000D_ u1 can be initialized as shown._x000D_ _x000D_ _x000D_ 3:_x000D_ To initialize char ch[] of u2 '.' operator should be used._x000D_ _x000D_ _x000D_ 4:_x000D_ The code causes an error 'Declaration syntax error'

A. 1, 2
B. 2, 3
C. 1, 2, 3
D. 1, 3, 4
Answer» D. 1, 3, 4


Discussion

No Comment Found