InterviewSolution
Saved Bookmarks
| 1. |
Why Should I Prototype A Function? |
|
Answer» A function prototype tells the compiler what kind of arguments a function is looking to receive and what kind of return VALUE a function is going to give back. This approach helps the compiler ensure that calls to a function are made correctly and that no ERRONEOUS type conversions are TAKING place. A function prototype tells the compiler what kind of arguments a function is looking to receive and what kind of return value a function is going to give back. This approach helps the compiler ensure that calls to a function are made correctly and that no erroneous type conversions are taking place. |
|