134k views
0 votes
Which statement is true of arrays? Select one: a. Only whole numbers can be stored in arrays. b. Arrays cause more work for the programmer, but allow faster program execution. c. Only whole numbers can be used as array subscripts. d. Array elements cannot be reset after the array is declared.

1 Answer

4 votes

Answer:

The correct option to the following question is an option (C).

Step-by-step explanation:

Because we have only passed the integer value or the whole number to the subscript and if we pass any character value to subscript then it reads its ASCII value or it occurs an error.

So, that's why this option is correct.

Subscript is placed inside the square brackets "[]" which is written with the name of the array.

For example:

int arr[0];

Here, 'int' is the integer data type and 'arr' is the array name and inside the square brackets "0" is the subscript.

User Carl Raymond
by
5.5k points