Introduction to pointers in c
Pointer is a variable just like other variables of c but only difference is unlike the other variable it stores the memory address of any other variables of c. This variable may be type of int, char, array, structure, function or any other pointers. For examples:
(1)
Pointer p which is storing memory address of a int type variable:
int *p=&i;
(2)
Pointer p which is storing memory address of an array:
int (*p)[20]=&arr;
(3)
char(*p)(void)=&display;
(4)
int a;
float b;
}var;
struct abc *p=&var;