Functions

FUNCTIONS :- 
 
Functions are sub prograns. They are similar to main program except the function name will not be main(). These are used to write group of statements required frequently in more than one part of the program. They can take values called arguments or parameters and use those values into function body to perform an operation and it returns a result called as returning value. It always returns only one value. There will be a only one "return"  statement in normal program which doesn't contain if and switch statement.

Comments