0
What is the result of compiling and running the following C++ program?
#include <iostream>
using namespace std;
class A {
public:
explicit A(int x) { cout << x; }
};
int main() {
A a = 5;
return 0;
}- A5
- BCompilation error
- C0
- DNothing is printed
Correct answer: B