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

Computer Science & Information Technology

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.

Computer Science & Information Technology

Find the error in each of the following program segments and correct the error:

a) #include ; b) arraySize = 10; // arraySize was declared const c) Assume that int b[ 10 ] = {}; for ( int i = 0; i <= 10; i++ ) b[ i ] = 1; d) Assume that int a[ 2 ][ 2 ] = { { 1, 2 }, { 3, 4 } }; a[ 1, 1 ] = 5;

Computer Science & Information Technology

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

Computer Science & Information Technology

You can press the _________________________ key to quit Range Finder.

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

Computer Science & Information Technology