Ask Question
17 July, 13:04

Suppose v is an array with 100 int elements. If 100 is assigned to v[100], what happens?

Answer

(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.

+4
Answers (1)
  1. 17 July, 16:40
    0
    If 100 is assigned to v{100}, an exception will be thrown when that statement is executed. The correct answer is C.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Suppose v is an array with 100 int elements. If 100 is assigned to v[100], what happens? Answer (A) The compiler issues an error message. ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers