Define functions calling with example.
Answers
Answered by
1
Here is your answer user.
Attachments:
Answered by
0
Functions calling with example:
- When a specific task is performed by a group of statements in a program it refers to a function.
- There will be at least one function in a program for performing the desired task.
- Each function will be assigned with a certain task and it will be performed when it is called in the main function.
- The syntax for defining a function is as follows:
return_type function_name(list of parameter) {
the function body
}
- The function should be called for using it.
- When a function is called in a program, the control will be passed to the function.
- The function that is called will then be executed and the control will be again transferred to the program.
For example:
int main () {
int x = 10;
int y = 20;
int ret;
int Z = add(x, y); /*calls the function add(x,y)*/
printf( "Added value is : %d\n", Z );
return 0;
}
Learn more on:
https://brainly.in/question/2365070
What is the function that always exists and is not first calling function?
https://brainly.in/question/6766866
Calls to missing functions in a c program are detected by
Similar questions
Science,
5 months ago
English,
5 months ago
Computer Science,
11 months ago
Biology,
1 year ago
Math,
1 year ago