ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
What will be the output of the following C++ code
#include<iostream>
#include<any>
using namespace std;
int main()
{
float val = 5. any var(val);
cout<<var.type().name()<<endl;
return}
Correct Answer: A — Pkc
type() function is used to check the type of data/value the container object is holding.