C Programming Code Examples C > Pointers Code Examples This program shows how a pointer is declared and used in C This program shows how a pointer is declared and used in C There are several other things that we can do with pointers, we have discussed them later in this guide. For now, we just need to know how to link a pointer to the address of a variable. #include <stdio.h> int main() { //Variable declaration int number = 10; //Pointer declaration int *p; //Assigning address of number to the pointer p p = # printf("Address of variable number is: %p", p); return 0; }