The Pointer in C programming language is a variable which stores the address of other variables. The pointer variable is such as int, float, char, double, short etc.
The syntax for a pointer is as follows:
The example of a pointer is as follows:
Note: * denotes that p is the pointer variable, not a normal variable.
The example program for a pointer in the C is the following:
/* address of q is assigned to ptr */
/* display q's value using ptr variable */