Tuesday 12 February 2013

Constants in C++ Programming Language



Constant is a quantity which does not change during the execution of the program. The different type of constants are,

1) Integer constant
2) Floating point constant
3) Character constant
4) String constant
5) Wide - character constant

Example:

345 - Integer
110.21 - Floating point
'B' - Character constant
"Name" - String constant
A 'CD' - Wide character constant

0 comments:

Post a Comment

Powered by Blogger.