MCQs > IT & Programming > C++ > union U { int x; double d; }; int main() { U a; a.x = 7; a.d = 7.7; int y = a.x; // <------ breakpoint placed here } What is the value held by a.x when the above breakpoint is reached?

C++ MCQs

union U { int x; double d; }; int main() { U a; a.x = 7; a.d = 7.7; int y = a.x; // <------ breakpoint placed here } What is the value held by a.x when the above breakpoint is reached?

Answer

Correct Answer: uninitialized

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it