Electrical and Computer Engineering
7 of 22
UAH
CPE 112
An Overview of
User-Defined Functions
•When a function call is encountered, logical control is passed to the first statement in that function’s body. After the last statement of a function is executed, control returns to the point immediately following the function call. •Functions can have parameters, we could have written one function which has an input parameter which tells it how many lines of asterisks to print.