What is a Pointer ?


A pointer is a variable that contains the address of another variable in memory. Suppose i is a integer variable having value 10 stored at address 3302 and address of i is assigned to variable j, then  j is a pointer variable pointing to memory address stored in it. In other words,  j Is a pointer variable containing address of i (i.e 3302).



Note: Pointer variable is also known as address variable as it always sore address of some other variable.




Previous                                                                                    Next


Powered by Blogger.