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