Live quiz

cpp - Part 101

Question 1 of 25 Hints left: 3
Q1

What will be the output of the following C++ code? #include<iostream> #include<any> using namespace std; int main() { float val = 5.5; any var(val); cout<<var<<endl; char c = 'a'; var.emplace<char>(c); cout<<var<<endl; return 0; }

  • A
  • B
  • C
  • D