The pointer, as the name suggests, is something which is pointing to or directing to something. The pointer is used to store the address of another variable and the data type of the pointer is same as data type of variable it is pointing to. As the variable which points to other variable is called pointer and the variable which is pointed to by the pointer is called pointee. We represent the relation between the two as:
We can also have pointer to pointer and we declare it as:
And the memory map can be represented as:
NEXT let’s discuss some operations on pointers.