Question: Given the declarations below: int num 1 = 5 , num 2 = 7 ; double result; What is the correct way to call a

Given the declarations below:
int num1=5, num2=7;
double result;
What is the correct way to call a function named calc() with two integer arguments that returns a double into result?
Group of answer choices
num1, num2= calc(result);
calc(int num1, int num2, double& result);
calc(result, num1, num2);
result = calc(num1, num2);
result = calc(int num1, int num2);

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 Programming Questions!