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
27 views
asked Apr 8, 2014 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 Apr 8, 2014 by sunny Expert (11,410 points)

Related questions

0 votes
1 answer 30 views
30 views asked Jan 8, 2014 by sara Guru (24,570 points)
0 votes
1 answer 17 views
17 views asked Apr 8, 2014 by sunny Expert (11,410 points)
0 votes
1 answer 26 views
26 views asked May 29, 2011 by daniel Advisor (5,600 points)
0 votes
1 answer 18 views
0 votes
1 answer 50 views
...