MCQOPTIONS
Saved Bookmarks
| 1. |
Which of the following statements are correct about the program given below?# include int main(){union a{ int x; char C[2];};union a K1 = {1 2 3};union a K2 = {1,2 3};return 0;}(a) K2 cannot be initialized as shown(b) K1 can be initialized as shown(c) to initialize char C[ ] of K2 ‘.’ operator should be used(d) results in syntax errorThe correct answer is : |
| A. | (a) and (b) only |
| B. | (b) and (c) only |
| C. | (a), (b) and (c) |
| D. | (a), (c) and (d) |
| Answer» E. | |