Show the output of the following code:
```
#include
using namespace std;
void increase(int x[], int size)
{
for (int i = 0; i < size; i++)
x[i] ++;
}
void increase(int y)
{
y++;
}
int main()
{
int x[] =
{
1, 2, 3, 4, 5
};
increase(x, 5);
int y[] =
{
1, 2, 3, 4, 5
};
increase(y[0]);
cout << x[0] << " " << y[0];
}
```
a. 2 2
b. 1 1
c. 1 2
d. 0 0
e. 2 1
e. 2 1
You might also like to view...
Predict the output and explain your prediction.
The following program has been partitioned into two files. The command line command for compiling this is CC B.cpp A.cpp, where CC is the name for your command line compiler. For VC++ this is CL, for Borland, this is BCC32, and for the GNU C++ compiler, this is g++. If you use an IDE (integrated development environment) you would have to place both these files in your project then click the compile button.
```
// This goes in file A.cpp
namespace
{
int func(int i)
{
return i*3;
}
int junk (int i)
{
return i*func(i);
}
// This goes in file B.cpp
#include
When using an append query, the ________ is the table from which records are being extracted
A) source table B) static data C) destination table D) extraction table
When creating a form in Access, the Layout view allows the user to make design changes to the form while it is displaying data. _________________________
Answer the following statement true (T) or false (F)
When you change the horizontal ____ of a letter or letters, you not only are changing the shape of the word, but you are also shifting the text on either side as you widen or narrow the selected characters.
a. resolution b. orientation c. dimension d. scale