#include<stdio.h>
#include<conio.h>
int main (void)
{
int a,b,c,d;
clrscr();
a=3;
b=5;
c=a,b;
d=(a,b);
printf("c=%d",c);
printf("d=%d",d);
getch();
}
I am getting the output as
c=3d=5
Can anyone please explain me that how am i getting this output?
The question revolves mainly around the statements
The
=operator has lower precendence than the,operator, so the first statement means:The
,operator returns the value of the second operand, so the second statement means: