Discussion
A union is used in embedded code chiefly to
Answer: D
Correct answer: view the same storage as more than one type
A union overlays its members on the same bytes, so a 32-bit word can be examined as four bytes or a float inspected bitwise. That reinterpretation is its purpose. It does not reduce alignment - a union takes the strictest requirement of its members - and only one member holds a valid value at a time.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development