P
Q. Predict the output?
#include <iostream>
using namespace std;
class Test
{
int x;
Test()
{
x = 5;
} };
int main()
{
Test *t = new Test;
cout << t->x;
}
- Correct Answer - Option(A)
- Views: 73
- Filed under category C++
Discusssion
Login to discuss.