jeudi 30 avril 2020

Why is this a valid scanf statement to break out of a while loop?

Why is this a valid line of code to break out of an indefinite while loop.

if (scanf("%s", word) != 1) break;

Aucun commentaire:

Enregistrer un commentaire