CPP MCQ
What does the data type defined by union will do?
A)
It allow one same portion of memory to be accessed as different data types
B)
It allow one different portion of memory to be accessed as different data types
C)
It allow one different portion of memory to be accessed as same data types
D)
It allow one same portion of memory to be accessed as same data types

Correct Answer : Option (A) :   It allow one same portion of memory to be accessed as different data types

Explanation : Union is used to define the data types of our choice and it will store the data type in one location make them accessible.