Data types in C++
Variable : A variable is a
name given to the memory location that stores the data for the program. Some
general rules attached with variable names are : Variable name should be
unique, if we given same name to two variables, C++ would not understand which
one has been referred. Variable name can be of a single letter. Variable name
should begin with a letter of an alphabet or an underscore, rest of the part
can contain letters, numbers and/or underscore. Variable names should not be
reserved words. Variables cannot have the same name as a C++ command or a
library function. Blank spaces are not allowed in variable names. Variable
names are case sensitive. Unlike C we can declare a variable anywhere in the
program, however we should declare it before using it in the program.