Show the printout of the following code:

```
#include
using namespace std;

void swap(int n1, int n2)
{
int temp = n1;
n1 = n2;
n2 = temp;
}

int main()
{
int a[] = {1, 2};
swap(a[0], a[1]);
cout << "a[0] = " << a[0] << " a[1] = " << a[1] << endl;

return 0;
}
```


```
#include
using namespace std;

void swap(int n1, int n2)
{
int temp = n1;
n1 = n2;
n2 = temp;
}

int main()
{
int a[] = {1, 2};
swap(a[0], a[1]);
cout << "a[0] = " << a[0] << " a[1] = " << a[1] << endl;

return 0;
}
#include
using namespace std;

void swap(int n1, int n2)
{
int temp = n1;
n1 = n2;
n2 = temp;
}

int main()
{
int a[] = {1, 2};
swap(a[0], a[1]);
cout << "a[0] = " << a[0] << " a[1] = " << a[1] << endl;

return 0;
}
a[0] = 1 a[1] = 2
```

Computer Science & Information Technology

You might also like to view...

The space between a node’s contents and its top, right, bottom and left edges is known as the ________, which separates the contents from the node’s edges.

a. margin b. spacing. c. padding. d. None of the above.

Computer Science & Information Technology

A(n) Binary search uses the operators AND , OR, and NOT to specify how your keywords are to be combined.

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

Computer Science & Information Technology

____________________ forensics applies to all modern electronic devices, including mobile phones, personal digital assistants (PDAs), portable music players, and other electronic devices capable of storing digital information.

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

Computer Science & Information Technology

As you are testing the hyperlinks and action buttons in your presentation, it is wise to make a list as you check the entire presentation, then go back and fix them all at one time

Indicate whether the statement is true or false

Computer Science & Information Technology