its called prototyping. the first time u basicly just say, this function is somewhere in this file. Otherwise your compiler will bump into functions he doensn 't know yet and will just not compile. U can do without prototyping, its not needed, however it makes the order in wich the functions are ordered in tour code-file irrelevant.