General C Flashcards
What does the C preprocessor do
The preprocessor makes modifications to the source code before compilation
What does the C linker do
Combines object code produced by the compiler with additional code needed from the C standard library and makes an executable program
What are C statements
Commands that are to be executed when the program is run
What are C tokens
The punctuation of the C programming language
What is the command to compile a C program
gcc source_code.c
What is a C macro
A fragment of code which has been given a name and whenever that name is used, it is replaced by the contents of the macro during preprocessing
GCC compile switch: -o
-o allows you to choose the name of the executable file compiled by the C compiler
What is a C syntax error
Violations of the language
Where does program execution begin in a C program
At the main function
What is the string in the C printf function called
A format string
What does the C compiler do
Preprocesses the source code, generates error messages, takes your source code and compiles it to object code
What is a C string literal
A series of character enclosed in double quotation marks
What are C comments used for
To document programs and improve readability
What is the file extension of a C source code file
.c
What are the three steps to create a C executable
Preprocess, compile and link