About Functions (cont'd)

  • Recall our main function declaration:
       int main()
  • The int expresses the value type expected by the caller. In this case, the caller expect an integer.
  • The parentheses tell we're not accepting any parameters.
  • What is parameters (or arguments)? Recall the function in math. For example: f(x) = 2x + 3. This function takes one parameter: x.
  • Functions will be discussed further in latter chapters.

 


Where to go

Chapter 2
News Page
Lesson 1 contents
Contacting Me


Roby Joehanes © 2001

Hosted by www.Geocities.ws

1