Posts by Márcio Martinez • 11 points
1 post
-
1
votes6
answers35893
viewsA: Keyboard buffer cleaning after scanf
Can be used this code here which also works perfect: while ((c = getchar()) != '\n' && c != EOF) {}
1 post
1
votes6
answers35893
viewsCan be used this code here which also works perfect: while ((c = getchar()) != '\n' && c != EOF) {}