Show the output of the following code:

```
#include
using namespace std;

class A
{
public:
int x;
int y;
int z;

A(): x(1), y(2), z(3)
{
}
};

int main()
{
A a;
cout << a.x << " " << a.y << " " << a.z;

return 0;
}
```

a. 2 2 2
b. 3 3 3
c. 1 1 1
d. 1 2 3
e. 1 1 2

d. 1 2 3

Computer Science & Information Technology

You might also like to view...

Which of the following is best described as a technology that enables a single processor to appear as two processors to the OS and allows multiple threads to run simultaneously?

A. EPIC B. hyper-threading C. RISC D. super-threading

Computer Science & Information Technology

Which of the following uses the current foreground and background colors to produce an effect?

a. Sketch filters b. Baseline filters c. Standard filters d. Applied filters

Computer Science & Information Technology