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

Home > Java Programming > Operators > Questions and Answers

Q: What the below statement will print if a=10 and b = 20?
printf("%d",a==b); 
A. 20 B. 10
C. 1 D. 0

Answer and Explanation

Answer:0

Explanation:
a==b is a expression and will return 1 (true) or 0 (False) depending on the values of a and b. Here a and b are not equal so 0 is printed.  

Comment on this Question

Name:

Loading...




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