Advertisements
Advertisements
Question
Identify the false statement.
Options
The index of an array begins with 0.
An Array occupies contiguous memory locations.
An array is a collection of multiple variables of different data types.
The [] brackets in the declaration statement indicates the size of the array.
MCQ
Advertisements
Solution
An array is a collection of multiple variables of different data types.
Explanation:
An array stores multiple values of the same data type. Therefore, statement (c) is false because an array cannot contain elements of different data types.
shaalaa.com
Is there an error in this question or solution?
Chapter 7: Arrays - One Dimension - Exercises [Page 173]
