I know that an assignment can be used as a condition in () after if statement. Like
int i;
if(i = 1) printf("Hey guys !");
. But It is unlike usual conditions like a < b
, so I can`t understand its mechanism. Why can it works as a condition?
Aucun commentaire:
Enregistrer un commentaire