MCQOPTIONS
Saved Bookmarks
| 1. |
Point out the error in the following program (in Turbo C under DOS). #include union emp { int empno; int age; }; int main() { union emp e = {10, 25}; printf("%d %d", e.empno, e.age); return 0; } |
| A. | Error: Lvalue required |
| B. | Error: Rvalue required |
| C. | Error: cannot initialize more than one union member. |
| D. | No error |
| Answer» D. No error | |