man
:
cowsay
.
grep
and explain the usage to the TA.
tldr
to make your life easier.
printf
in the program - it has to be used inside a precompiler macro. This macro can only have one argument. Each type should be output in a new line similar to this (with correct values of course):
Size of short: 3
Size of int: 5
The sizes of the following types should be printed:
gcc -Wpedantic -Wall -Wextra -Wvla -Werror -std=c11
-m32
to compile it for 32bit and
-m64
to compile it for 64bit.
Note that you may need to install a package named gcc-multilib
to compile with -m32
.
-Wpedantic
, -Wall
, -Wextra
, -Wvla
, -Werror
and -std=c11
do.