What will the following code display?

```
#include
using namespace std;
void doSomething(int&);
int main()
{
int x = 2;
cout << x << endl;
doSomething(x);
cout << x << endl;
return 0;
}
void doSomething(int& num)
{
num = 0;
cout << num << endl;
}
```

a. 2
0
2
b. 2
2
2
c. 0
0
0
d. 2
0
0


d. 2
0
0

Computer Science & Information Technology

You might also like to view...

After the following Dim statement is executed, how many elements will the array myVar have?

Dim myVar(7) As Double (A) 0 (B) 1 (C) 8 (D) 9

Computer Science & Information Technology

The ____ attribute of a radio button determines what data will be sent to the database if the user selects a particular button.

A. selection B. value C. key D. choice

Computer Science & Information Technology

________ gridlines are the lines between designated label values

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

Computer Science & Information Technology

The Office button has been replaced by the ____ tab in PowerPoint 2010.

A. Options B. Edit C. PowerPoint D. File

Computer Science & Information Technology