Functions


Description

Consider one example creating a report card of a student. To complete this task you know each teacher of specific subject is appointed to check the answer sheet and submit the marks to the class teacher. After receiving the marks of all subjects, class teacher creates the report card of each student.
Now in programming point of view above example can be coded as , To complete the task as our main program and sub-task allocated to each teacher as a function.

This chapter covers :

  • Function introduction
  • Passing & returning arguments
  • Call by value
  • Call by reference
  • Recursive function