1st code:
#include
using namespace std;
int main() {
string letters[2][4] = {
{ “A”, “B”, “C”, “D” },
{ “E”, “F”, “G”, “H” }
};
cout << letters[0][2];
return 0;
}
2nd code:
#include
#include
using namespace std;
int main(){
string letters[2][4][2]={
{ {
{“A”,“B”,},
{“C”,“D”,}
},
{
{"E","F",},
{"G","H",}
}
},
{
{
{"I","J",},
{"K","L",},
},
{ {"M","N",},
{"O","P",},
}
},
};
cout<<letters[0][0];
return 0;
}