1/11/00
COM1100 Winter2000 Yuhong Yin
Northeastern University
21
Variable Definition -- 1
n
Initialize the value of variable x when it is
declared
n
data_type variable_name = initial_value
n
Examples
n
int x = 5;
n
double y = 7.896;
n
string myName = “Yuhong Yin”;
n
n
n