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

What will be the output of the following C++ code? #include<iostream> #include<any> #include<string> using namespace std; int main() { string s = "Hello World"; any var(s); cout<<any_cast<string>(var)<<endl; return 0; }

Select the correct option to test your answer:

More Computer Questions

Halting problem is an example for? What is the correct way to refer the cell A10 on sheet3 from sheet1? What does the MapReduce "Map" function do? Which of the following statements is used to create an empty set in Python? What will be the output of the following C# code? m = 5; int y; 1. y = m++; 2. y = ++m;