A pointer variable is a variable that stores the address of another variable.
Pointers are often used in dynamic memory allocation, and operations on the architectural level of computer system.
This C++ program example is very simple to find out a factorial of number which enter by user..
We define friend function setX to set the private data member x of class count.