Multiple choice

Structure in C++ can store

  1. only similar data type

  2. any data type

  3. only two data types

  4. only 5 data types

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

Structures in C++ can contain members of different data types (int, float, char, etc.) unlike arrays which require similar types. This makes structs versatile for grouping related data.