Vidyalelo
Computer Science · Q531

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 531

Q531

Which of the following type casts will convert an Integer variable named amount to a Double type?

A.
(double) amount
Answer
B.
(int to double) amount
C.
int to double(amount)
D.
int (amount) to double

Answer: Option A

Solution

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