A C program uses pointers to print the output of an integer variable. The variable is declared and initialized to 5. Its memory address is stored in a pointer variable. When the pointer variable is dereferenced and printed, it outputs the value (5) stored at the address pointed to by the pointer.