Đăng Khánh
New member
What will be the output of the following C++ code?
A. Run-time error
B. Compile-time error
C. Hello World
D. Nothing is printed
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;
}
B. Compile-time error
C. Hello World
D. Nothing is printed