C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers

114 comments

10,705 users

Why should I prototype a function?

0 votes
30 views
asked by sunny Expert (11,410 points)

1 Answer

0 votes
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.
answered by sunny Expert (11,410 points)

Related questions

0 votes
1 answer 32 views
32 views asked by sara Guru (24,570 points)
0 votes
1 answer 18 views
0 votes
1 answer 30 views
30 views asked by daniel Advisor (5,600 points)
0 votes
1 answer 22 views
0 votes
1 answer 53 views
...