About Lesson
FUNCTIONS
A function is itself a block of code which can solve simple or complex task/calculations.
A function performs calculations on the data provided to it is called “parameter” or “argument”.
A function always returns single value result.
Types of function:
-
Built in functions(Library functions)
a. Inputting Functions.
b. Outputting functions.
-
User defined functions.
a. fact();
b. sum();
Parts of a function:
-
Function declaration/Prototype/Syntax.
-
Function Calling.
-
Function Definition.