O'Reilly logo

Absolute Beginner’s Guide to C, 2nd Edition by Greg Perry

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required