C Functions
C program is collection of functions
No classes, so function declarations appear freely in source code
No explicit public/private distinction
Example: /* Yield maximum of x and y */
int max (int x, int y) {
if (x >= y)
return x;
else return y;}
Previous slide
Next slide
Back to first slide
View graphic version