Declarations

A variable declaration statement starts with a data type keyword (e.g. int, string etc) followed by a comma separated list of variable names and optional initializations, terminated by a semicolon.

Example 5.1. Variable Declarations

int i;          // Declare an integer variable
int i, j, k;    // Declare three integers
int i = 7;      // Declare and initialize
int i, j = 8;   // Declare two integers, initialize j.