Welcome Guest | Sign in | Register
If statements - Discussion Page For Q.10502 | C Programming Questions and Answers | C Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > If statements > Questions and Answers

Q: The statement that compares total for equality to good_guess, and if equal prints the value of total, and if not equal prints the value of good_guess, is
A. Statement 1
if( total < good_guess )
printf("%d", total );
else
printf("%d", good_guess );
B. Statement 2
if( total == good_guess )
printf("%d", good_guess );
else
printf("%d", total );
C. Statement 3
if( total = good_guess )
printf("%d", total );
else
printf("%d", good_guess );
D. Statement 4
if( total == good_guess )
printf("%d", total );
else
printf("%d", good_guess );

Answer and Explanation

Answer:Statement 4
if( total == good_guess )
printf("%d", total );
else
printf("%d", good_guess );

Explanation:
There is no explanation...

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.