The pointer is nothing but a variable that stores and points the address or location of a different variable. While a regular variable stores the value of a variable, a pointer variable stores the address or location of a variable.

Why it is used?

You can use pointers in a C program for getting the location of a variable, or for achieving pass by call reference. This is because pointers allow various functions to modify and share the local variables. You can also use a pointer for implementing “linked” data structures, such as lists and binary trees. Have you read our rest of the Interview Questions on C?

Suggest An Answer