Vidyalelo
Computer Science · Q392

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 392

Q392

The statement int n[4] = 11, -13, 17, 105;

A.
assigns the value -13 to [2]
B.
assigns the value 17 to n[2]
Answer
C.
is wrong; it gives an error message
D.
assigns the value 18 to n[2]

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board