1/11/00
COM1100 Winter2000 Yuhong Yin
Northeastern University
22
Variable Definition -- 2
n
Change the value of a variable anywhere in
the program using
assignment statement
n
Examples
n
int x;
// variable declaration
n
x = 9;
n
x
= 7 + 8;
n
string herName;
// variable declaration
n
herName = “ Elice Brown”;
n