05-02-2011, 05:32 PM
To define a variable, data member or member function constant, we use the keyword const. constant data member, member function does not change their value.
For example:
const int A=10;
A=20; //Error
Because A is declare as constant, which value can not be changed.
For example:
const int A=10;
A=20; //Error
Because A is declare as constant, which value can not be changed.
0300-9520262
Get solution in 24 hour |cpmputer & internet
mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
