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

Join The Discussion