πŸ“Š C++
Q. Output of following C++ program?
Code:
class Test {
int x;
};
int main() {
Test t;
cout << t.x;
return 0;
}
  • (A) 0
  • (B) Garbage Value
  • (C) Compiler Error
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (C) Compiler Error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
213
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
88%
Success Rate