What is the output of the following code?
```
#include
using namespace std;
void f(double &p)
{
p += 2;
}
int main()
{
double x = 1;
double y = 1;
f(x);
f(y);
cout << "x is " << x;
cout << " y is " << y << endl;
return 0;
}
```
a. x is 2 y is 1
b. x is 3 y is 3
c. x is 2 y is 2
d. x is 1 y is 1
e. x is 1 y is 2
b. x is 3 y is 3
You might also like to view...
Which FileChooser method returns the file the user selected?
a. getSelectedFile. b. getFile. c. getOpenDialog. d. showOpenDialog.
When you click a hyperlink value, Access launches the appropriate program, such as a Web browser, Word, or Excel, and enables you to interact with the file
Indicate whether the statement is true or false
Which report section would be the most logical choice to use for the report title or logo?
A. Page Footer B. Report Footer C. Detail D. Report Header
In a distributed topology, an IPAM server is deployed at every site in the network.
Answer the following statement true (T) or false (F)