24.0k 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. The program will terminate immediately.
d. Another variable or array will very likely be unexpectedly modified.

2 Answers

1 vote

Answer:

Another variable or array will very likely be unexpectedly modified.

Step-by-step explanation:

User Ryan Alford
by
5.2k points
5 votes

Answer:

c. The program will terminate immediately.

Step-by-step explanation:

Exception will be thrown .When statement is executed.

User Philayyy
by
5.6k points