Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

24 days ago

Language

C

Compiler

gcc 13.2.0

Options
Warnings
C11
-pedantic

Author

anonymous

24 days ago

noname

$ gcc prog.c -Wall -Wextra -std=c11 -pedantic
prog.c: In function 'main':
prog.c:5:12: warning: overflow in conversion from 'int' to 'char' changes value from '1000' to '-24' [-Woverflow]
    5 |     s[1] = 1000;
      |            ^~~~
prog.c:3:10: warning: variable 's' set but not used [-Wunused-but-set-variable]
    3 |     char s[10];
      |          ^
Exit Code:
0