C Specifics
esse quam videri
Contents
Variables
Declaration
Variable declaration in standard C requires 3 simple commands.
- First, tell the computer what type of variable you would like to store.
- Next, give the variable a unique name.
- Finally, end your declaration.
- char[]* VariableName;
Initialization
Variable initialization may only occur once you have declared a variable. To initialize a variable in standard C, simply use the assignment operator (=) immediately after the variable declaration, preceding the semi-colon.
- int VariableName = 5;