Here is the c program. I get a strange conclusion.
When num1 = 10 and num2 = 20 →
#include<stdio.h>
void main()
{
int num1=10,num2=20;
clrscr();
if(num1,num2)
{
printf("TRUE");
}
else
{
printf("FALSE");
}
getch();
}
Conclusion: TRUE
when num1 = 0 and num2 = 220 Conclusion: TRUE
But when num1 = 0 and num2 = 0: Conclusion: FALSE Why is this happening? also, which means this below under the code:
if(num1,num2)
Thanks in advance!
source
share