After reading the FAQ and the latest post about void main() and int main() I looked at some sample code that came with my compiler.
One thing I noticed is that they declared all the functions before the main(). IE.
Code:
int function1(var 1, var2);
void function2(void);
etc....
int main()
{
blah blah blah
}
My question is this. What is the point of declaring them before main() and what effect does it have?
I'm using Borland TurboC ("older then dirt" version)
It never required me to use void or int before a function so I'm trying to learn that part so I can change my habit.