+ 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?

29th Oct 2018, 7:59 AM
Eduardo Perez Regin
Eduardo Perez Regin - avatar
1 ответ
29th Oct 2018, 8:09 AM
Mert Yazıcı
Mert Yazıcı - avatar