Explain the output of this program?

All QuestionsCategory: Cpp LanguageExplain the output of this program?
Chetan Shidling Staff asked 5 years ago

Code

 

#include<iostream.h>

using namespace std;

class sample { int x; }

int main() {sample obj; obj.x=100; cout<<“x=”<<obj.x<<endl;}

 

Please tell me what is output??