A static variable is a special variable that you can use in a function, and it saves the data between calls, and it does not delete it between calls. For example: void func(){ static int count; // If you don't declare its value, the value automatically initializes to zero printf(%d, , count); count++; } void main(){ while(true){ func(); } }