#include <iostream>
using namespace std;
void strary_toupper( char st[][6], int n)
{
for(int i=0; i<n; i++) {
char *j = st[i];
while (*j) {
*j = toupper(*j);
j++;
}
}
}
int main(void)
{
char cs[][6] = {"turbo", "na", "dohc"};
strary_toupper(cs,3);
for(int i=0; i<3; i++)
cout << cs[i] << endl;
return (0);
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdm9pZCBzdHJhcnlfdG91cHBlciggY2hhciBzdFtdWzZdLCAgaW50IG4pCnsKICBmb3IoaW50IGk9MDsgaTxuOyBpKyspIHsKICAgIGNoYXIgKmogPSBzdFtpXTsKICAgIHdoaWxlICgqaikgewogICAgICAqaiA9IHRvdXBwZXIoKmopOwogICAgICBqKys7CiAgICB9CiAgfQp9CmludCAgbWFpbih2b2lkKQp7CiAgY2hhciAgY3NbXVs2XSA9IHsidHVyYm8iLCAibmEiLCAiZG9oYyJ9OwoKICBzdHJhcnlfdG91cHBlcihjcywzKTsKICBmb3IoaW50IGk9MDsgaTwzOyBpKyspCiAgICBjb3V0IDw8IGNzW2ldIDw8IGVuZGw7CgogIHJldHVybiAoMCk7Cn0=