Home / MCQ Bank / Computer
Computer Plus Plus Miscellaneous Difficulty: Medium

What will be the output of the following C++ code? #include<iostream> using namespace std; class Print { public: void operator()(int a){ cout<<a<<endl; } }; int main() { Print print; print(5); return 0; }

Select the correct option to test your answer:

More Computer Questions

What is the login name and password verified for? When you want to insert a blank embedded excel object in a word document you can Which library function is used to allocate memory dynamically in C? What is the name given to all the programs inside the computer with makes it usable? What will be the output of the following C code? #include <stdio.h> #define foo(x, y) x / y + x int main() { int i = -6, j = 3; printf("%d\n",foo(i + j, 3)); return 0; }