187k views
0 votes
Suppose v is an array with 100 int elements. If 100 is assigned to v[100], what happens?

a.The compiler issues an error message.
b.The compiler issues a warning message.
c.An exception will be thrown when that statement is executed.
d.Another variable or array will be unexpectedly modified.

1 Answer

1 vote

Answer:

The answer is LETTER C.

Step-by-step explanation:

An exception will be thrown when the statement is executed, because

arrays store multiple values in a single variable. Arrays use numbered indexes.

User Shoebie
by
8.2k points