Question: Given the following declarations, what result is stored in each of the listed assignment statements (what is the value of iResult or fResult)? (1
Given the following declarations, what result is stored in each of the listed assignment statements (what is the value of iResult or fResult)? (1 pt each) int iResult, numl 15, num21 2; double fResult, val1 = 2.0, val2= 12.68; a). iResult = numl/num2; b). fResult = numl/vall; c). fResult = val2/num2; d). fResult = numl/ (float) num2; e). fResult = (float) (numl / num2);
Step by Step Solution
3.36 Rating (159 Votes )
There are 3 Steps involved in it
Given declarations int num1 15 num2 2 double val1 20 val2 1268 int iResult double fResult a iResult ... View full answer
Get step-by-step solutions from verified subject matter experts
