Chapter 9. FUNCTIONS

I l @ ve RuBoard

Chapter 9. FUNCTIONS

You will learn about the following in this chapter:

  • Keyword

     return 
  • Operators

     * (unary) & (unary) 

In this chapter, you learn about functions: how to define them, how to use arguments and return values, and how to use pointer variables as function arguments. You find out about function types, ANSI C prototypes , and recursion.

How do you organize a program? C's design philosophy is to use functions as building blocks. You've already relied on the standard C library for functions such as printf() , scanf() , getchar () , putchar () , and strlen() . Now you're ready for a more active role: creating your own functions. You've previewed several aspects of that process in earlier chapters, and this chapter consolidates your earlier information and expands on it.

I l @ ve RuBoard


C++ Primer Plus
C Primer Plus (5th Edition)
ISBN: 0672326965
EAN: 2147483647
Year: 2000
Pages: 314
Authors: Stephen Prata

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net