Multiple choice

A datatype that allows different data types to be assigned to the same storage location is called_________.

  1. enum

  2. union

  3. array

  4. none of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A union is a special data type that allows storing different data types in the same memory location, where only one member can contain a value at any given time.