Vidyalelo
Computer Science · Q430

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 430

Q430

Which of the following will increase the value stored in the first element of the fee array by 2?

A.
amount[0] = amount[0] + 2;
B.
amount, fee[0] = amount, fee [0] + 2;
C.
feelnfo.amount[0] = feelnfo.amount[0] + 2;
D.
fee[0].amount = fee[0].amount + 2;
Answer
E.
fee.amount[0] = fee.amount[0] + 2;

Answer: Option D

Solution

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