Chapter 2 Flashcards
C Year
1972
Printf function
printing out (output)
scanf
scans, recives input saves it into variable
Preprocessor
modifies C program before compilation
Library?
collection of useful functions and symbols that can be accessed by program. ends with “.h”
preprocessor directive
It’s the hashtad that indicates to the program that it is a preprocessor
Constant macro
Name replaced by a particular constant value before the program is sent to compiler (#define)
C program’s main function?
int main() . marks the beginning of the function where the program begins.
Declarations?
Spot creted in the memory for the values with these names. depending on the data type, the amount of memory for the variable. Has to be initialized
Executable statements?
lines that are converted to machine language. Instructions executed by computer
REserved words?
words that have a special meaning in c, basically, they cant be used for any other things than the specific function
Standard identifier?
Reserved word but can be redefined (not recommended)
User defined identifiers?
Names of memory cells that hold data
User defined identifier rules
- must consist of letter, digits and underscores
- cannot begin with a digit
- A C reserved word cannot be used as identifier
- An identifier in C standard library should not be redefined
Variable?
name associated with a memory cell whose value can change
Variable declarations?
Statements that comunicate to the compiler the name and data type of variable
Executable statementes
Follow declarations in a function and turne into machine language. used to code the algorithm
Input operation
instruction that copies data from an input into a memory