What is the output of the following code, given the function definition below?

What is the output of the following code, given the function definition below?
int a = 7, b = 12;
tester (a, b);
cout << a << “ “ << b;
void tester (int m, int &n) // function definition
{
n = n - 2 * m;
m = 2 * m;
}

a) 7 -2
b) 7 12
c) 14 -2
d) 14 12


a) 7 -2

Computer Science & Information Technology

You might also like to view...

Casting a reference stored in a base-class variable to a derived-class type is called ____________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Write a statement that inputs the values for the elements of t from the keyboard.

What will be an ideal response?

Computer Science & Information Technology

A two-variable data table can be used to calculate the payment amount based on different interest rates and different number of years for the loan

Indicate whether the statement is true or false.

Computer Science & Information Technology

The standard input stream is named ____.

A. stdin B. stdout C. instream D. ostream

Computer Science & Information Technology