General C Flashcards
(25 cards)
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
What is a C semantic error
Errors in meaning
What is the file extension of a C object code file
.o
What is the file extension of a C header file
.h
What type of statements do not require a statement terminator
Preprocessor directives, comments and function headers
What is the C keyboard buffer
Memory that is used by the operating system to store input characters from the keyboard
What is the C program execution stack
When a program calls a function, the called function must know how to return to its caller, so the return address of the calling function is pushed onto the program execution stack
What is the C activation record
The program execution containing the memory for the local variables used in each invocation of a function during a program’s execution
What are C strings created out of
Character arrays
What is used to indicate the end of a C string
\0’ null