We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 69f5fe4 + 8534585 commit 766dc02Copy full SHA for 766dc02
chapter_1/exercise_1_09/copy_io.c
@@ -2,8 +2,9 @@
2
3
int main(void)
4
{
5
- char c;
6
- char last_c = '\0';
+ int c;
+ int last_c = '\0';
7
+
8
while ((c = getchar()) != EOF)
9
10
if (c != ' ' || last_c != ' ')
0 commit comments