I\'m currently working through the excercises in \'The C Programming Language\'. Here\'s one of my solutions:
int c; while ((c=getchar()) != EOF) { if (c == \
I thinks no problem in it. You can use it, In many situations i prefer it.