What is Variables and Rules of Declaring Variables in C++.
What is Variable?
Variable is a named memory location.It is used to store program's input data and its results during execution.
Value of a Variable may be changed during the program execution but name can not be changed.
The Variables are created in RAM(Random Access Memory).RAM is a temporary memory.
The data stored in RAM is also temporary.
Rules for Declaring Variables in C++.
Some important rules of variables are:
- A variable consists of a number,latter or underscore( _ ).
- First character must be latter or underscore.
- Spaces are not allowed between variable name.
- Uppercase and Lowercase both are allowed.
- Keywords C++ are not allowed as variable name.
- A variable consists of 31 character.
- One variable can be declared for one data type.
Tags:
#c language compiler #best cs programs #c development
#how to code in c #computer programmer #software developer
#php programmer #it programs
#computer programming certification
#c++ programs examples #c++ programs download #c++ programs pdf
#c++ programs with output #c++ programs for beginners
#c++ programs download for windows 7 #c++ programs list
#operators in c programming #what is structured programming
#c language data types #computer programming keywords
#variable types in c #variables in computer programming
#types of variables in computer programming #c language data types
What is Variables and Rules of Declaring Variables in C++.
Reviewed by Alpha
on
3/04/2017 06:13:00 pm
Rating:
No comments: