dec and ini
whats the dif between variable declaration and variable initialization
//variable declaration
short a,b,c,d ;
//variable initialization
a-b-c-d-10;
Declaration is where you tell the compiler you are allocating/naming new variables and possibly assigning some type information to them (depending on the language).
Initialisation is where you give values to your newly allocated variables.
arm.
Initialisation is where you give values to your newly allocated variables.
arm.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement