Predict the output?
#include <iostream>
using namespace std;
class Test
{
int x;
Test()
{
x = 5;
} };
int main()
{
Test *t = new Test;
cout << t->x;
}1.Compiler Error
2.5
3.Garbage Value
4.None of these
Posted Date:-2022-07-04 04:05:19