Friday, March 18, 2011

4.2 Functions Returning Non-integers

  • For functions returning non-integers
    • Function must declare the type of value it returns (ie. double function ( ) )
    • Calling routine must know that the function returns a non-int value 
  •  Declarations must match definitions
  • If functions take argument, declare them; if functions take no argument, use void

No comments:

Post a Comment