C++ examples for Function:static variable
Click the following links for the tutorial for Function and static variable.