Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Viewed less than a minute ago

itqMjqW6BAllddki

C gcc 12.1.0

Created at 1 minute ago

Created by anonymous

Author

anonymous

1 minute ago

Language

C

Compiler

gcc 12.1.0

Options
Warnings
C11
no pedantic
セオライド・テクノロジー㈱株式会社フィックスターズ

Author

anonymous

1 minute ago

›
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <stdio.h>

/* count lines in input */
int main() {
int c, nl, t, s;

nl = 0;
t = 0;
s = 0;

while ((c = getchar()) != EOF) {
if (c == '\n') {
++nl;
}
if (c == '\t') {
++t;
}
if (c == ' ') {
++s;
}
}
printf("%d new lines, %d tabs, %d spaces\n", nl, t, s);
}

›
9
1
2
3
4
fasee wer wer w
werw roawe ajwef
rfa wejrfeaweaa

$ gcc prog.c -Wall -Wextra -std=c11
3 new lines, 0 tabs, 6 spaces
Exit Code:
0
セオライド・テクノロジー㈱株式会社フィックスターズ