![]() If some function is called somewhere, but its body is not defined yet, that is defined after the current line, then it may generate problems. If the function prototypes are not mentioned, then the program may be compiled with some warnings, and sometimes generate some strange output. ![]() By this information, the compiler cross-checks the function signatures before calling it. The function prototypes are used to tell the compiler about the number of arguments and about the required datatypes of a function parameter, it also tells about the return type of the function. ![]() Here we will see what are the purpose of using function prototypes in C or C++.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |