C++ | Class and Object | Question 3

Last Updated :
Discuss
Comments

class Test {
int x;
};
int main()
{
Test t;
cout << t.x;
return 0;
}

0

Garbage Value

Compiler Error

Share your thoughts in the comments