main()
{
int i=0,j=0;
while(i<5,j<10)
{
i++;
j++;
}
printf("%d,%d,",i,j);
}
output: 10,10
int main(){
int x=2,y=2;
while(x<=5,y<=3)
printf("%d %d ",++x, ++y);
return 0;
}
output: 3 3 4 4
In the first code how can output is coming as 10,10
? can anyone explain,but the output for the second code is 3344
, Are both running on different logic?