In C++ array indices, that is subscript values, must be

a. An integer type
b. Non-negative
c. Positive
d. Less than or equal to the declared size of the array
e. None of these is correct

a) and b) are correct
Explanation: c) excludes 0, a possible index value. d) includes the declared size, not allowed. e) is wrong as there are some correct answers.

Computer Science & Information Technology

You might also like to view...

Which of the following cable types have a maximum recommended cable length of 100 meters (328 feet)?

A. Coaxial B. Ethernet C. Serial D. Fiber

Computer Science & Information Technology

A set of named constants that start with the value 0 for the first constant and increment by 1 for each subsequent constant can be declared as a(n) ________.

a. class b. enum c. enumeration d. None of the above.

Computer Science & Information Technology