What do you mean by pointer? Explain with example.
A pointer is a variable that holds the memory address, usually the location of another variable. For example, variable ‘a’ memory is allocated at address 56000, and pointer variable ‘ptr’ can hold the address of variable ‘a’ i.e., address 56000.