Since you can write a Function prototype in a seperate header file to include in the main program, can you write that functions definiton straight after the function prototype in the header file?
like
and then save this all in an header file, include in main program and call the functions in there, would it work just as if i had used the prototype before the main function, and the definition after the main function has ended?Code:int FindArea( int LengthofRoom, int WidthofRoom ); int ReturnLength ( int L ); int FindArea( int Length, int Width ) { return L * W; } int ReturnLength ( int LE ) { return RoomLength; }
hugo.