Static is used in classes to say that variable or function is the same fo all class objects, but we can create static function or variable outside class, and sometimes it fix errors, what diference between static function and not static outside class.
For example:
static int foo1()
{
return 1;
}
int foo2()
{
return 1;
}
int main()
{
return 0;
}
what diference between foo1 and foo2?