What will be the output of the following C++ code?
#include <iostream>
#include <string>
using namespace std;
int main()
{
cout<<extent<remove_extent<string[10][20]>::type>::value;
cout<<extent<remove_extent<string[10][20][30]>::type>::value;
return 0;
}
#include <iostream>
#include <string>
using namespace std;
int main()
{
cout<<extent<remove_extent<string[10][20]>::type>::value;
cout<<extent<remove_extent<string[10][20][30]>::type>::value;
return 0;
}A. 1010
B. 1020
C. 2020
D. 2030
Answer: Option C

Join The Discussion