What is the printout of the following code?

```
#include
using namespace std;

void f(int &p1, int p2)
{
p1++;
p2++;
}

int main()
{
int x1 = 1;
int x2 = 1;
f(x1, x2);
cout << "x1 is " << x1 << " x2 is " << x2;
}
```

a. x1 is 2 x2 is 2
b. x1 is 1 x2 is 2
c. x1 is 1 x2 is 1
d. x1 is 2 x2 is 1


d. x1 is 2 x2 is 1

Computer Science & Information Technology

You might also like to view...

A text file in which one or more tabs are used between the fields is known as a(n) ________ file

Fill in the blank(s) with correct word

Computer Science & Information Technology

Match each item with a statement below.

A. Computer that has two separate network interfaces, one to the external Internet and one to the internal LAN. B. Scan specific parts of the data portion of an HTTP packet and redirect it to a specific location. C. Also called explicit proxies. D. Maintain records of events such as logon attempts and accesses to files. E. Defined pieces of packet or system data F. Set of protocols that enable proxy server access to applications without an assigned proxy server. G. A very popular proxy server for home and small business environments. H. Evaluate the application-layer data buried in the data portion of an IP packet to determine whether to allow the packet to pass into or out of the network. I. Configured so that they are totally invisible to end users.

Computer Science & Information Technology

A graph is a set of edges and vertices such that each edge connects two vertices.

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

Computer Science & Information Technology

Ad hoc mode is also known as _______________ mode.

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

Computer Science & Information Technology