Given the function, and the main function calling it: What is the output of the following code if you omit the ampersand (&) from the first parameter, but not from the second parameter? (You are to assume this code is embedded in a correct function that calls it.):
```
#include
using namespace std;
void func(int & x, int & y)
{
int t = x;
x = y;
y = t;}
int main()
{int u = 3; v = 4;
// ...
cout endl;func ( u, v )cout // ...
```
a) 3 4
3 3
b) 3 4
4 3
c) 3 4
3 4
d) 3 4
4 4
a) 3 4
3 3
Computer Science & Information Technology
You might also like to view...
The calendar displays the current month with a blue box around the ____, as shown in the accompanying figure.
A. current date B. Calendar pane C. Navigation Pane D. My Calendars pane
Computer Science & Information Technology
The two most popular Web Servers are________in the UNIX world and________in the Microsoft world.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology