Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C

Compiler

gcc 10.1.0

Options
Warnings
C11(GNU)
no pedantic

$ gcc prog.c -Wall -Wextra -std=gnu11
prog.c: In function 'main':
prog.c:5:35: warning: integer overflow in expression of type 'int' results in '1874919424' [-Woverflow]
    5 |  printf("%ld\n", (long)(100000000 * 100000000));  /* オーバーフローします */
      |                                   ^
1874919424
10000000000000000
Exit Code:
0