Consider this "EXAM" question:
int main()
{
int a=10,b=20;
char x=1,y=0;
if(a,b,x,y)
{
printf("EXAM");
}
}
Please let me know why this doesn't print anything at all.
Comma operator - evaluates 1st expression and returns the second one. So a,b,x,y
will return value stored in y, that is 0.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With