I can't print characters in the file... It shows many boxes with 0 's and 1's inside it as the output... Help me... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I can't print characters in the file... It shows many boxes with 0 's and 1's inside it as the output... Help me...

check the code https://code.sololearn.com/cqOi4715L435/?ref=app

16th Jun 2018, 7:21 AM
Dhanaraj S
Dhanaraj S - avatar
1 Answer
+ 2
Add parenthesis surounding your condition like that : (c = getchar()) != EOF By default, the compiler understood it like that : c = (getchar() != EOF)
16th Jun 2018, 8:56 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar