Vidyalelo
Computer Science · Q218

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 218

Q218

The statement double val[15]=44.123456;

A.
assigns the value 44.123456 to all members of the array val
B.
assigns the value 44.123456 to val[0] and 0 to the rest of the members
Answer
C.
gives an error message
D.
assigns the value 44.12345 to val[1] and val[5]

Answer: Option B

Solution

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