Storage Locations
* Storage locations in memory toilet be used to hold data for a program.
* A memory board location has:
* think of -the information stored at that location.
* Adderess The number which says where the terminal location is in memory.
* Name anidentifier that a program associates with that storage location.
* Type the fiber of data stored at that location
Variable
* The symbolic name (identifier ) for a storage location which can change its value is a variable.
* Variavles mustiness be sustaind,before they can be given a value.When yyou declare a variable you specify its name andy fictional character.
* The declaration allocates the storage location of the appropriate size and associates the name and data type with that location.
Variable Declarations
* They format for the declaration of an integer is
Data type_identifier;
* For exmple
-int number
-float length
-char letter
-double height
Namin g Entities in C++
* Identifiers are used to name entities in C++
* Entities that need names
-Funtions and methads
-Storage locations
-Variable
- Constants
-Objects
-User outlined type
Rules for making Identifiers
* Identifiers start with a letter.
* Identifiers are a sequence of letters,digits,and underscore characters_
* Identifiers may non be a reserved pronounce.
* An identifier name cannot consist of more(prenominal) than 31 characters.
Keywords
* A reserved word is a word which has a special meaning in C++ and cannot be redefined by the programmeer,
-Examples :int ,float.delete,else if this try void for while
* A standard identifier or keyword is a word is a word which has a defined meaning in C++ but its use can be changed by the programmer....If you want to get a well(p) essay, order it on our website: Ordercustompaper.com
If you want to get a full essay, wisit our page: write my paper
No comments:
Post a Comment