Module 2 Flashcards
Comments
Information ignored by the compiler and are used to describe the code
Preprocessor directive
A C program line beginning with # that provides an instruction to the preprocessor
Library
A collection of useful functions and symbols that may be accessed by a program
Constant macro
A name that is replaced by a particular constant value before the program is sent to the compiler
Declarations
The part of the program that tells the compiler the names of memory cells in a program
Executable statements
Program lines that are converted to machine language instructions and executed by the computer
Function body has two parts:
Declarations and executable statements
Reserved word
A word that has special meaning in C
int
Integer; indicates that the main function returns an integer value
void
Indicates that the main function receives no data from the operating system
double
Indicates that the memory cells store real numbers
return
Returns control from the main function to the operating system
Variables
A name associated with a memory cell whose value can change
Variable declarations
Statements that communicate to the compiler the names of variables in the program and the kind of information stored in each variable
char
Indicates that the memory cells store a character.. anything on the keyboard can be a character.. always inside of single quotes ‘ ‘