Question: The num 1 and num 2 variables have the int data type and contain the numbers 1 3 and 5 , respectively. The answer variable

The num1 and num2 variables have the int data type and contain the numbers 13 and 5, respectively. The answer variable has the double data type. Which of the following statements will require an explicit type conversion to evaluate correctly? a. answer = num1/4.0; b. answer = num1+ num1/ num2; c. answer = num1- num2; d. none of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!