C: Function
Functions are groups of statements which work together to perform a task. A program is made of at least one function (int main).
A function is declared as:
return_type function_name(parameter)
{
}
A function is called with:
function_name()
There are two types of function calls, by value and by reference.
In the first case, variables are used.
In the second case, pointers are used.
2201757635
skyconnectiva.com
binus.ac.id
Juanda P. G.
A function is declared as:
return_type function_name(parameter)
{
}
A function is called with:
function_name()
There are two types of function calls, by value and by reference.
In the first case, variables are used.
In the second case, pointers are used.
2201757635
skyconnectiva.com
binus.ac.id
Juanda P. G.
Comments
Post a Comment