Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > gcc -Wall -Wextra -Wno-main -Wpedantic -pedantic -g -O0 -o alignment_check2 alignment_check2.c
- alignment_check2.c: In function 'main':
- alignment_check2.c:21:23: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
- 21 | printf("Size of int:%d\n", sizeof(int));
- | ~^ ~~~~~~~~~~~
- | | |
- | int long unsigned int
- | %ld
- alignment_check2.c:24:36: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'long unsigned int' [-Wformat=]
- 24 | printf("Size of long long int: %lld\n\n", sizeof(long long int));
- | ~~~^ ~~~~~~~~~~~~~~~~~~~~~
- | | |
- | | long unsigned int
- | long long int
- | %ld
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement