Show the printout of the following code:

```#include
using namespace std;

void swap(int a[])
{
int temp = a[0];
a[0] = a[1];
a[1] = temp;
}

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

return 0;
}
```


```
#include
using namespace std;

void swap(int a[])
{
int temp = a[0];
a[0] = a[1];
a[1] = temp;
}

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

return 0;
}

a[0] = 2 a[1] = 1
```

Computer Science & Information Technology

You might also like to view...

Software requirementsspecify the operating system and minimum hardware capacities necessary for a software product to work correctly.

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

Computer Science & Information Technology

A program that runs in the browser to add interactive content to the Web page is called a(n):

A) thread B) post C) script D) pop-up

Computer Science & Information Technology

Which of the following text wrap options has the text follow the shape of the object, but does not overlap the object?

A) Top and Bottom B) Round C) Tight D) Through

Computer Science & Information Technology

Automatic ________ lets you immediately see the effects of changing values in your spreadsheet.

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

Computer Science & Information Technology