What is the output of the following code?
```
#include
using namespace std;
int main()
{
int list[] = {1, 1, 1, 1};
*(list) = *(list) + 1;
*(list + 1) = *(list + 1) + 2;
*(list + 2) = *(list + 2) + 3;
*(list + 3) = *(list + 3) + 4;
cout << list[0] << " " << list[3] << endl;
return 0;
}
```
a. 2 2
b. 3 5
c. 2 5
d. 1 2
e. 3 4
c. 2 5
You might also like to view...
Inheritance is represented by a(n) ________ relationship.
a) "uses" b) "is-a" c) "has-a" d) None of the above.
Find the error in each of the following program segments and correct the error:
a) #include
A technician needs to boot macOS over the network using an image stored on a server. What Apple technology will best assist the technician?
A. Swap partition B. NetBoot C. HFS+ D. Key Chain
You can press the _________________________ key to quit Range Finder.
Fill in the blank(s) with the appropriate word(s).