Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Viewed less than a minute ago

RYEQ4HEcrvurA8Mi

C gcc 13.2.0

Created at 3 minutes ago

Created by anonymous

Author

anonymous

3 minutes ago

Language

C

Compiler

gcc 13.2.0

Options
Warnings
Compiler Default
no pedantic

Author

anonymous

3 minutes ago

›
9
1
2
3
4
5
6
7
8
9
#include <stdio.h>

int main(void) {
int N;
if (scanf("%d", &N) != 1) return 1;
printf("%d\n", (int)(sizeof(struct {char a; char b[N];})));
return 0;
}

›
9
1
-999
$ gcc prog.c -Wall -Wextra
-998
Exit Code:
0