


All pointer variable irrespective of their base type will occupy the same space in memory. Just like other variables, a pointer is a variable so, the compiler will reserve some space in memory. Similarly, a pointer variable of type pointer to float can be represented as (float *). A pointer variable of type pointer to int can be symbolically represented as (int *). The type of variable (also known as base type) ip is a pointer to int and type of fp is a pointer to float. Similarly, the pointer variable fp can only store the address of a variable of type float. In other words, a pointer variable ip can store the address of variables of type int only. Int *ip means that ip is a pointer variable capable of pointing to variables of type int.
