I totally understand the use of static functions that are members of a class. But what might be the probable use of static functions that are not related to any class or defined globally. eg-
#include <iostream>
using namespace std;
static int func()
{
cout<<"This is a function";
}
int main()
{
/*Random code here*/
return 0;
}