SELF
Exam
Programming
What will be the output
main()
{
if(1,0)
{
printf("True");
}
else
{
printf("False");
}
}
Read Solution (Total 3)
-
- True
b'coz 1 is seen first in 1,0 and the expression is evaluated to be true - 10 years agoHelpfull: Yes(0) No(0)
- Answer is False coz 0 is assigned at last.
- 5 years agoHelpfull: Yes(0) No(0)
- In the if loop it reads from left to right after it sees 1 since there is comma after the first condition it consider only the first condition irrespective of 2nd condition soo the output is true
- 4 years agoHelpfull: Yes(0) No(0)
SELF Other Question