C++ Variable : Identifier declare variable |
variable define, declare and what are those? By all means C++ is a statically typed language. The type also indicates nature or category of the variable that would store data at a memory location in your computer for further manipulation. There fore you can't use any variable without specifying its type. By defining a variable in C++ you are avoiding data corruption, like a word can't be replaced with an integer, along that line. The same way variables that will have decimals and long number or string need to be defined by their corresponding type.
|
Example |
|