Home / MCQ Bank / Computer
Computer Object Oriented Programming In C Plus Plus Difficulty: Medium

What will be the output of the following C++ code? #include <iostream> using namespace std; class A { int a; A() { a = 5;} }; int main() { A *obj = new A; cout << obj->a; }

Select the correct option to test your answer:

More Computer Questions

Which of the following uses 1vw or 1vh, whichever is smaller? What is the tag used for making character appearance bold? Which of the following is not a jQuery dimension method? What sets the stack order of an element? Which of the following is not one of PowerPoint's views?