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

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

+5
Answers (1)
  1. 30 July, 16:08
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers