Computer Science, asked by nannemnarsaiah, 1 year ago

10. What is the final value of result from the following code snippet?
int id = new int [3];
int result = id[i];
result = result +
The code will not compile,result has the value of 2
The code will compile, result has the value of 1
An exception is thrown.
The code will compile, result has the value of 0
The code will compile, result has the value of 2​

Answers

Answered by LordOK
0

Answer:

An Exception is Thrown

Explanation:

I.e I is not defined

Similar questions