+ 1
while(a < 17, b < 7) what is the maning of the coma?
I have this code in C from a challenge: int a = 0, b = 0; while(a < 17, b < 7){ a++; b++; } printf("%d %d \n", a, b); My question is, what is the meaning of the , inside of the while? the coma also is equivalent to && operator? This is the first time that I see something like this, and I'm little confused about why to use the , instead of &&, what are the main difference?
1 Odpowiedź