C++ Variables
In C++ variable is used to store data in memory location, which can be modified or used in program during program execution.
There is some rules must be in your knowledge to work with C++ variables.
Rules of Declaring variables in C++
Variable Definition in C++
Syntax:
type variable_name;
type variable_name, variable_name, variable_name;
Example:
/* variable definition and initialization */
int width, height=5;
char letter='A';
float age, area;
double d;
/* actual initialization */
width = 10;
age = 26.5;
No comments:
Post a Comment