MCQOPTIONS
Saved Bookmarks
This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
size of union is size of the longest element in the union |
| A. | Yes |
| B. | No |
| C. | May Be |
| D. | Can't Say |
| E. | |
| Answer» B. No | |
| 2. |
union demo{ float x; int y; char z[10];};7.Members of a union are accessed as________________. |
| A. | union-name.member |
| B. | union-pointer->member |
| C. | Both a & b |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 3. |
The size of the following union, where an int occupies 4 bytes of memory is |
| A. | 8 byte |
| B. | 4 byte |
| C. | 10 byte |
| D. | 18 byte |
| Answer» D. 18 byte | |
| 4. |
Union differs from structure in the following way |
| A. | All members are used at a time |
| B. | Only one member can be used at a time |
| C. | Union cannot have more members |
| D. | Union initialized all members as structure |
| Answer» C. Union cannot have more members | |