Class 2 Flashcards
Preprocesor tasks
Prepares a .c file for the compiler
Input is from source code.c and output goes to source code.I
String all comments from the source code
Using #include preprocess or directives in the source code file, copy the entire contents of the file in to sourcecode.I
Replace any MACROS
Declaration
Type information only, no values
Variable declaration
Tells the compiler the type of the variable
Function declaration
It tells the compiler the return type, the number and types of its parameters, this is called PROTOTYPE
Definition
Type information and value
Variable definition
Tells the compiler the type of the variable and the INTITIAL VALUE
Function definition
Tells the compiler the return type, parameter types, and the CODE that should be executed
A given variable or function can only be defined ______ in a C program
ONCE