Pointer in C++

When an object is created from its class, the member variables and member functions are allocated memory spaces. The memory spaces have unique addresses. Pointer is a mechanism to access these memory locations using their address rather than the name assigned to them. You will study the implications and applications of this mechanism in detail in this chapter. Pointer is a variable which can hold the address of a memory location rather than the value at the location. Consider the following statement. This statement instructs the compiler to reserve a…

Read More