Skip to content

Commit 603ddad

Browse files
authored
Fix variable declaration for character input
1 parent fb49ce7 commit 603ddad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter_2/exercise_2_02/loop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ int main(void) {
1717
break;
1818
}
1919

20-
char c = getchar();
20+
c = getchar();
2121

2222
if (c == '\n'){
2323
break;

0 commit comments

Comments
 (0)