Possible Duplicate:
Nested function in C
In C, if i wrote a program in this structure:
main ()
{
int function1(...)
{
....
}
}
function 2()
{
function1(...)
}
It is possible to call function1 from function2 that was written inside the main function?
and also:
In C all the functions are global? or there is some restriction in some situation that from one function you cant call another one?
You cannot nest function definitions in C.
The definition of
function1above is not valid.