1/11/00
COM1100 Winter2000 Yuhong Yin Northeastern University
20
Variable Declaration
nSyntax:  data_type variable_name;
nint x;
ndouble y;
nstring myName;
nWhen you declare a variable,
nThe system assigned a space in the memory that will be used to store the value of the variable
nThe memory location can be referred by the name of the variable in the future
nThe content of the memory location may be garbage – whatever information has been stored there last time
n