Identify each of the following as function call function-00751
This subjective question is related to the book/course vu cs504 Software Engineering - I. It can also be found in vu cs504 Mid Term Solved Past Paper No. 1.
Question 1: Identify each of the following as function call, function definition and function declaration.
int func(int num1, int num2);
int func(int, int);
func(5, 6) ;
int func(int num1, int num2){}
int func(int num1, int num2);
int func(int, int);
func(5, 6) ;
int func(int num1, int num2){}
Answer:
int func(int num1, int num2);
- Function call: Function;
- Function definition: Integer;
- Function declaration: Num1 and Num2
int func(int, int);
- Function call: Function ;
- Function definition: Integer;
- Function declaration: integers
func(5, 6) ;
- Function call: Function;
- Function definition: numbers;
- Function declaration: 5 & 6
int func(int num1, int num2){}
- Function call: Function ;
- Function definition: Integer;
- Function declaration: Num1 and Num2