CodesandTutorials
Home   Programming   Hardware   Networking
 
Next generation website theme is here (black, neon and white color) - Reduces eye strain and headache problems.  

C Categories

Functions

« Previous Point - Ternary Operators Next Point - Function Introduction »

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

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

« Previous Point - Ternary Operators Next Point - Function Introduction »

Tip Box

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


Advertisement

Rate Website
   

 


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