Mathematics
 
 
MTH 568 - Compuational Science

 

Home
 

Syllabus
 

Course Outline
 

Resources
 

Contact Info


 
Functions



Functions are segments of code that can be grouped into a compact unit that can be used repeatedly.  Every C program has at least one function, called main().  All other functions are called by main()
 
 
 

  • Creating a Function
    • An example of a function
    • Code used to call the function from main()

     
  • Prototyping a Function and the Final Program
    • All functions other than main() must be prototyped
    • triangle.c