Wednesday, 18 February 2015

Procedural Programming ( C function)

                                       C Function                                   Lesson 2

What is function ?

  A function is a group of  statement that together perform a task.C program has at least one function which is main().

Example : As we noted earlier, using a function is  something like hiring a person to do a specific job for you.

Function declaration

A function declaration tells the compiler about a function's name, return type, and parameters. A function definition provides the actual body of the function.

Calling function

Function Arguments(Parameter Passing)

There are two ways that a C function can be called from a program. They are below
  • Call by value 
  • Call by reference 


We focus on call by value so that my beloved brother & sister in BAC can pass in Procedural Programming           

     

 

Any question about function and parameter passing writes down in comment box. Everyday check this blog u will learn lot things of C programming and Web application development

                                                                



 

No comments:

Post a Comment