Question: 3 . When the function below is called, the _ _ _ _ _ of the parameter is passed to the function. double sqrt (

3.When the function below is called, the _____ of the parameter is passed to the function.
double sqrt(double& myNumber);
A. address B. value C. name D. scope
4. What does the following function return?
int index_of_smallest(const double a[], int startIndex, int numberOfSlots);
A. a double
B. the address of an integer
C. an integer
D. nothing
5.In the following function call, what is passed to the second parameter?
void function1( int& value1, int value2);
int var1, var2;
function1(var1, var2);
A. The value of var1
B. Nothing, it is a void function
C. The value of var2
D. A reference to the memory location of var2

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!