Ask Question
27 September, 00:06

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.

+2
Answers (1)
  1. 27 September, 01:49
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers