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

Home > Java Programming > If statements > Questions and Answers

Q: What will be the output
main()
{
if(1,0)
{
printf("True");
}
else
{
printf("False");
}
}
A. True B. False
C. Compilation Error D. Run time Error

Answer and Explanation

Answer:False

Explanation:
comma(,) operator returns the value which at the right hand side of , . if statement become if(0)

Comment on this Question

Name:

Loading...




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