CodesandTutorials
Next generation website theme is here (black, neon and white color) - Reduces eye strain and headache problems.
You are here - Home > Programming > C > Basics

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 :

  • What is function and why to use it?
  • How to pass data to functions and return results back.
  • When to use call by value and call by reference.
  • How recursive function works.

Functions


Tip Box

When program becomes too large or lots of task needed to be implemented, then its better way to go for functions.


Advertisement





Terms of Use | Privacy Policy | Contact Us | Advertise
CodesandTutorials © 2014 All Rights Reserved