Thread: Threading
View Single Post
  #11   Spotlight this post!  
Unread 02-02-2009, 18:04
intellec7's Avatar
intellec7 intellec7 is offline
108 programmer
AKA: Gustavo
FRC #0108 (SigmaC@ts)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2006
Location: Hollywood, Florida
Posts: 65
intellec7 is on a distinguished road
Send a message via AIM to intellec7 Send a message via MSN to intellec7
Re: Threading

The compiler compiles the source code from top to bottom, so if you have a source file like :

Code:
test_function();

void test_function(void)
{ //do stuff 
}
it is best to prototype "test_function" before you call it. This lets the compiler know that there is a definition of the function. Some compilers might not compile the source code without the prototypes, others might throw a "implicit reference" warning.

Last edited by intellec7 : 02-02-2009 at 18:07. Reason: code tags
Reply With Quote