function program is a _____ program
Answers
Answered by
1
Answer:
sub
Explanation:
Functions are used to modularize the program. Library and user-defined are two types of functions. A function consists of a declaration, function body, and a function call part.
Answered by
0
Answer:
When a program calls a function, the program control is transferred to the called function. A called function performs a defined task and when its return statement is executed or when its function-ending closing brace is reached, it returns the program control back to the main program.
There can be 4 different types of user-defined functions, they are:
Function with no arguments and no return value.
Function with no arguments and a return value.
Function with arguments and no return value.
Function with arguments and a return value.
Similar questions