Basics of Pointers in C++

Before we start with basics of pointers, it is strictly recommended to go through the concepts of pointers from the Learn C Online (Click here). We have attempted to cover pointers in the most simplest manner possible. But, it will be impossible for you to grasp the knowledge of the pointers unless and until you have the concepts of pointers clear in your mind by reading – Learn C Online (Click here). A pointer is a variable that represents the location (rather than the value) of a data item, such as a variable or an array element. Suppose v is a variable that represents some particular data item. The compiler will automatically assign memory cells for this data item. The data item can then be accessed if we know the location (i.e. the address) of the first memory cell allocated to variable v by the compiler. The address of v‘s...