What is the output of the following program?
```
#include
using namespace std;
class TestClass
{
public:
TestClass(int x)
{ cout << x << endl; }
TestClass()
{ cout << "Hello!" << endl; }
};
int main()
{
TestClass test;
return 0;
}
```
a. the program runs but there is no output.
b. 0
c. Hello!
d. the program will not compile
c. Hello!
Computer Science & Information Technology
You might also like to view...
PID stands for Program Identifier
Indicate whether the statement is true or false
Computer Science & Information Technology
The CAN-SPAM Act is considered an effective means of controlling the volume of spam on the Internet.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology