• In C++, pointers are variables that store the memory addresses of other variables.
• It is also known as locator or indicator that points to an address of a value.
• A pointer in c++ gives the address of a variable in RAM; It gives direct access to the RAM .
• The general form of a pointer variable declaration is : • type *var-name;
• Here, type is the pointer's type; it must be a valid C++ type.
• var-name is the name of the pointer variable.
• The asterisk is used to designate a variable as a pointer.................read more
Example 01: Example 1: #include
0 Comments