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
You might also like to view...
Which command displays a file's contents one screen at a time?
A. head B. show C. echo D. more
When shopping for music at an online music store, the customer is accessing ________ that identify files according to the recording artist, music type, song title, album title or other data
A) databases B) presentations C) documents D) spreadsheets
When you place a video in an InDesign document, a frame is created that is the same size as the video.
Answer the following statement true (T) or false (F)
What are the two distinct groups of cables used in the networking industry?
What will be an ideal response?