chapter  3
12 Pages

Modular Decomposition: Functions

A function is the main decomposition unit in a C program and it carries out a specific task in a program. When a function is called, it can receive input data from another function; the input data passed from another function is called an argument. The function can also return output data when it completes execution.