More on variables
Names may consist of alphanumeric or underscore
double this_is_122_OK;
char SO_87_is_THIS;
int 12but_this_isnot;
You can declare and initialize at same time
char ch=‘a’;
int zero=0;
double zero=0.0;
x=y=z=0;
Previous slide
Next slide
Back to first slide
View graphic version