C – Pointer

Prev     Next Pointers in C language is a variable that stores/points the address of another variable. A Pointer in C is used to allocate memory dynamically i.e. at run time. The pointer variable might be belonging to any of the data type such as int, float, char, double, short etc. Pointer Syntax : data_type *var_name; Example : int *p;  char *p; Where, * is used to denote that “p” is pointer variable and not a normal variable. Key points to remember about pointers in C: Normal variable stores the value whereas pointer variable stores the address of the variable. The content of … Continue reading C – Pointer