In computer science, a pointer is a programming language object that stores a memory address. This can be that of another value located in computer memory, or in some cases, that of memory-mapped computer hardware. Some C programming tasks are performed more easily with pointers, and other tasks, such as dynamic memory allocation, cannot be performed without using a pointer. In programming, we basically use pointers to store the other variable's address. A pointer variable is declared with a '*' before it. int *a.