
Day 2 Recap Questions
- The command to compile a C program is
gcc <source file> -std=c99 -pedantic -Wall -Wextra
. Use man
or Google to find out the meaning of the four flags, i.e. -std=c99
, -pedantic
, -Wall
and -Wextra
.
- Briefly describe what a preprocessor, compiler and linker do when transporting C code into executable?
- What does an undefined behavior mean in programming? Do we need to care about it? Why or why not?
- What does the modifier
const
mean?
- What are the primitive types in C and what are their byte sizes?
- What is the value of
7 / 2
(a division of two integers) in a C program?