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

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...

In ________ view, all Level 1 paragraphs display with a gray bullet containing a plus or minus sign

Fill in the blank(s) with correct word

Computer Science & Information Technology

In the IF function, the first argument sets a condition for comparison, called a relative test.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Which of the following is not one of three possible administrative models for defining your password replication policy?

a. No accounts cached b. Most accounts cached c. Few accounts (branch-specific accounts) cached d. All accounts cached

Computer Science & Information Technology

Some machine-local groups are similar in usage and membership to domain local groups. These types of local groups do not exist in AD DS and grant users access to resources on the local computer only

Indicate whether the statement is true or false

Computer Science & Information Technology