ACtE05 · Chapter 5Programming & Applications🏛️ Past Licensure QuestionID: aae11c1c
Which of the following data structures CANNOT natively store non-homogeneous (heterogeneous) data elements in C?
Which of the following data structures CANNOT natively store non-homogeneous (heterogeneous) data elements in C?
Multiple Choice Options
- A✓ Correct Option
Arrays
- B
Structures
- C
Unions
- D
Pointer arrays of void pointers
Detailed Technical Solution & Explanation
Arrays in C are fixed-size collections of homogeneous elements (all of the same data type). Structures and unions can store fields of heterogeneous data types.
Option Analysis:
•
Option A (Arrays): Correct. Strictly homogeneous in C.
•
Option B (Structures): Heterogeneous records.
•
Option C (Unions): Heterogeneous overlay storage.
•
Option D (Pointer arrays of void pointers): Can point to heterogeneous objects dynamically.
Reference: Mock Test 01NEC Licensure Syllabus