Post a Reply

Replies

I'm not sure why does he do that everytime but If I can guess, I would say he does that because it keeps your code clean, you know which functions you have used, if you have prototyped them in order & declared them respectively, then it could be easy for you to locate those functions, instead of just scolling up & down to find a particular function. ( I know that you can use Ctrl+F to find anything in a program)... in simple words, Its a good practice.

It's a matter of style. Some programmers like to have the main function as near the top as possible. So instead of having functions that takes up for example 200 lines above main. Do we just prototype it and get two lines above main, and get the functions itself under.

1

C++

131,060 followers

About

Used in many types of software including music players, video games, and many large scale applications.