Quote:
Originally Posted by Nightshft
Is it possible to forward functions and statements (so they are found even at the end of the code)?
|
Yes, of course. That's a "prototype". For that, just write the function header, but omit the body of the function:
Code:
int foo(int arg1,double arg2); ... int bar(..) { foo(1,42.0); /* use foo */ } ... int foo(int arg1,double arg2) { /* implement foo */ }