C Programming Language
C Programming Language
Descriptive header
Guard statements
to prevent multiple
inclusion
Macro to define a text
replacement for E_CHARGE
Guard terminator
• A variable that has a value assigned by the current program prior to first use is
called an initialized variable.
• It is best practice to always initialize variables.
• On a 32 bit processor:
• Allocates 4 bytes of storage at an address determined by the system.
• Assigns the symbol &a to represent
• The address 0x048abd65. The symbol, a, represents the contents at the address &a.
• The ampersand & is called the address-of operator in C
• Interprets the data contained within the 4 bytes as a signed integer.
• If expression is unequal to 0
• Statement 1 is executed Block style
• Statement 2 is not executed
• If expression is equal to 0
• Statement 2 is executed
• Statement 1 is not executed
• The block containing statement2 is
associated with the else keyword