Join ExamsbookAnswer : 4. "(double) amount"
Which of the following type casts will convert an Integer variable named amount to a Double type ?5
Q: Which of the following type casts will convert an Integer variable named amount to a Double type ?
- 1(int to double) amountfalse
- 2int (amount) to doublefalse
- 3int to double(amount)false
- 4(double) amounttrue
- Show AnswerHide Answer
- Workspace
Answer : 4. "(double) amount"
Explanation :
Answer: D) (double) amount Explanation: