ENGN132 - Chapter 2 Flashcards
What is a Preprocessor Directive?
Preprocessor Directive is a C program line beginning with # that provides an instruction to the preprocessor
e.g. #define, #include
What is a Preprocessor?
A preprocessor is a System Program that modifies a C program prior to its compilation
What is a Library?
A collection of useful functions and symbols that may be accessed by a program
What is a Constant Macro?
A name that is replaced by a particular constant value before the program is sent to the compiler
What is a comment?
Comments are text beginning with /* and ending with */ that provide supplementary information but are ignored by the preprocessor and the compiler.
// is used for a quick comment
Define Declaration
The part of the program that tells the compiler the names of the memory cells in a program
What are executable statements?
Executable Statements are program lines that are converted to machine language instructions by the compiler and executed by the computer
What is a Reserved Word?
Reserved Words are words with special meaning in C
What is a Standard Identifier?
A word having special meaning but one that a programmer may redefine.
Redefinition of Std. Identifiers is not recommended
What is a Variable?
A variable is a name associated with a memory cell whose value can change
What is a Variable Declaration?
Statements that communicate to the compiler the names of variables in the program and the kind of information stored in each variable.
Define Data Types
Data Types are a set of values and operations that can be performed on those values.
What is an ASCII code?
A particular code that specifies the integer representing each “char” value
Define Assignment Statements
Instructions that store values or a computational result in a variable.
What is an Input Operation?
An instruction that copies data from an input device into memory
What is an Output Operation?
An instruction that displays information stored in memory.
What is an Input/Output Function?
A C function that performs an input or output operation.