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.
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
No comments:
Post a Comment