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

Which layer of the TCP/IP network model specifies how packets travel end to end over a TCP/IP network?

A) Transport B) Application C) Session D) Network

Computer Science & Information Technology

A technician is asked to troubleshoot a server that constantly reboots. There are no error messages displayed on the server. Which of the following should the technician check?

A. Cooling failure B. Cable mismatch C. BIOS driver failure D. Port conflict

Computer Science & Information Technology