Wednesday 23 November 2016

How to declare and initialize variable in C++ ?

Variable Declaration:

The process of defining the data type and name of the variable is called variable declaration.

Example:

int marks;

Variable Initialization:

The process of assigning a value to a variable at the time of variable declaration is called as variable initialization.

Example:

Int marks =91;
Float height=5.5761;

No comments:

Post a Comment