Home / MCQ Bank / Computer
Computer Variables And Data Types In C Plus Plus Difficulty: Medium

What will be the output of the following C++ code? #include <iostream> using namespace std; int main() { int num = 0x20 + 020 + 20; cout << sizeof(num)<<'\n'; return 0; }

Select the correct option to test your answer:

More Computer Questions

Which of the things does not require instantiation? Can function definition be present in header files? Which header file is required to use get() function? In Java, can a subclass access protected members (fields and methods) of its superclass? What does the StopIteration exception indicate in generators?