Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 7 years ago

Language

Compiler

Options

Author

anonymous

over 7 years ago

$
prog.c: In function 'main':
prog.c:5:16: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
     printf("f=%f, d=%d\n", 42, 3.14);
               ~^
               %d
prog.c:5:22: warning: format '%d' expects argument of type 'int', but argument 3 has type 'double' [-Wformat=]
     printf("f=%f, d=%d\n", 42, 3.14);
                     ~^
                     %f
d=42, f=3.140000
f=3.140000, d=42
Exit Code:
0