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 1.
B. The program displays unpredictable number.
C. The program has a compile error because b.k cannot be accessed.
D. The program displays 0.
E. The program has a runtime error because b.k does not have a value.
B. The program displays unpredictable number.
You might also like to view...
In a JavaFX FXML app, you define the app’s event handlers in a________ class, which defines instance variables for interacting with controls programmatically, as well as event-handling methods.
a. view b. model c. controller d. data
Which of the following JavaScript expressions is equivalent to the given HTML code? ?