SS
2010-12-17 12:23:39 UTC
I read the this definition;
"In declaring, just the data types are mentioned without any memory storage for the data types. While defining the variable the declaring the data type of the variable along with space allocation for the variable takes place."
But yet I don't understand while in program where we are just declaring the variable or where we are defining it? For example,
int var1;
char var2;
//Here we are declaring the variable
var1=1;
var2=c;
// Here we are defining it
int var1=1;
char var2=c;
//Here we are declaring and defining the variables at the same time
Is it really meant that? Am I correct?
*If there are any grammar mistakes please correct them, I also have to improve my english;) Thanks*