while(a < 17, b < 7) what is the maning of the coma? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
29th Oct 2018, 8:09 AM
Mert Yazıcı
Mert Yazıcı - avatar