Is it fine to write a forward declaration of a function with a static keyword but implemet it later in the file without the static keyword?
For example:
#include <stdio.h> /* printf */
static void func();
int main()
{
func();
return(0);
}
void func()
{
printf("Hello World");
}
It compiles and runs without any errors, but would func be a static function or not and why?