1.

How are functions classified? Give the different types of functions.

Answer»

A function depending upon whether arguments are passed or not and whether a value is returned or not can be classified into the following five categories.

  • Functions with no arguments and no return value
  • Functions with no arguments and with return value 
  • Functions with arguments and no return value.
  • Function with arguments and return value.
  • Recursive functions.


Discussion

No Comment Found