Analyze the following code.
```
#include
using namespace std;
class B
{
public:
B() { };
int k;
};
int main()
{
B b;
cout << b.k << endl;
return 0;
}
```
a. The program displays 0.
b. The program displays 1.
c. The program displays unpredictable number.
d. The program has a compile error because b.k cannot be accessed.
e. The program has a runtime error because b.k does not have a value.
c. The program displays unpredictable number.
You might also like to view...
Which of the following display screens does not require a backlight to function?
a. organic light-emitting diode (OLED) display b. liquid crystal display (LCD) c. light-emitting diode (LED) display d. cathode ray tube (CRT)
A ________ appears at the top of each printed page
A) banner B) caption C) header D) title