c++ - Why do we use function prototypes? -
I am working with functions for the first time, and I'm curious why we use the function prototype. Why do we use them? Do we have to give them & gt; Need to use
There is a difference between the need for full requirement and practice. Technically, we do not need much more than necessary, for the creation of the loop of the language Technical recurring are only required for recurring tasks, and for function pointer to use. In practice, you need to divide them into bigger source code into manageable fragments, modules, and see things to look more faulty. An alternative to functioning prototypes in the form of an abstract view of a class, there may be something that is automatically seen as a summary of the complete source code. One option for a recursive set of tasks is to nest them, function functions inside the functions definitions. It is easy in C ++, through local classes in C ++ 03 and now via lambda in C ++ 11, but not in C. for ,
do and
while Practically it is different, you do not want to reduce the use of
goto and
longjmp .
Comments
Post a Comment