Multiple choice technology programming languages

Which of the following is used to store data of different types

  1. Arrays

  2. Structures

  3. Both a and b

  4. None of the Above

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

Structures (structs) allow grouping variables of different data types under a single name. Arrays are homogeneous data structures used to store multiple elements of the same data type. Therefore, Structures is the correct choice.