A pointer is an object that stores the memory address of another value located in computer memory.A Pointer in C is used to allocate memory dynamically at run time.
(1) * is used to denote pointer variable.Pointer variable belonging to any of the data type such as int, float, char, double, short etc.
(2) Pointer are not allowed addition, multiplication, division.
(3) The size of any pointer is 2 byte.
(4) & symbol is used to get the address of the variable.
data_type *var_name
#includevoid main() { int *p, q; q = 50; p = &q; printf("%d", *p); }
Output
50