How to Declare Pointers in C
In C language, declaring a pointer variable requires adding the “*” symbol in front of the variable name, for example:
int *ptr;
This statement creates a pointer variable named ptr which can point to an integer data. Pointers can point to any data type, just specify the corresponding data type when declaring it.