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 :
When program becomes too large or lots of task needed to be implemented, then its better way to go for functions. |