An 80k
reputation contributor R.. told me on SO that we can\'t initialize global variables with the return value of a function as that\'s not c
we could not call any function from outer of the function.Not like shell script.function only allow to called from inside of function body.
In c first execution begins from main()
, compiler don't know the function calling if that stands on outer of function it may taken as prototype if arg and return types provided.
we can putting return value of function by calling from main or others function block, to the variable,the function called then (that global) variable modified.
but we can use macro in global variable as needs. as:
#define max() 12
int glob=max();
main()
{
}