The static variable is a variable that is capable of retaining its value between multiple numbers of function calls in a program.