32. How Can I Perfect My Functions?

Using Return Values and Prototypes

image

This chapter is not the end of your C learning. This chapter is only the beginning. Sounds deep, doesn’t it? This chapter completes the multiple-function picture by showing you how to return values from the called function to the calling function. Also, function prototypes are explained.

The bottom line is this: You will now understand why most programs in this book contain this line:

return 0;

and you will understand the true purpose of header files.

Returning ...

Get Absolute Beginner’s Guide to C, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.