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
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
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
________ gridlines are the lines between designated label values
Fill in the blank(s) with the appropriate word(s).
The Office button has been replaced by the ____ tab in PowerPoint 2010.
A. Options B. Edit C. PowerPoint D. File