Question: Consider the following definition of function func _ 2 . void func _ 2 ( int arg 1 , double arg 2 ) { /

Consider the following definition of function func_2.
void func_2(int arg1, double arg2)
{
//code would go here
}
Which of the following is one correct way to call this function in code?
Question 6Answer
a.
int a =5;
double b =2.3;
func_2(a, b);
b.
func_2();
c.
func_2(int arg1, double arg2);
d.
int a =5;
double b =2.3;
int answer = func_2(a, b);
e.
int answer = func_2();

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!