#include <iostream>
void toUpper( char array[] ); //or *array
int main()
{
using std::cout;
using std::endl;
char array[6] = "Hello"; //by default it should append the null since I used double
//quoteswhich indicates it is a string and is not an ordinary array
toUpper( array );
cout << array << endl;
}
void toUpper( char array[] )
{
for( int i = 0; array[i]; ++i )
array[i] = toupper(array[i]); //http://w...content-available-to-author-only...s.com/reference/cctype/toupper/?kw=toupper
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdm9pZCB0b1VwcGVyKCBjaGFyIGFycmF5W10gKTsgLy9vciAqYXJyYXkKCmludCBtYWluKCkKewogICAgdXNpbmcgc3RkOjpjb3V0OwogICAgdXNpbmcgc3RkOjplbmRsOwoKICAgIGNoYXIgYXJyYXlbNl0gPSAiSGVsbG8iOyAvL2J5IGRlZmF1bHQgaXQgc2hvdWxkIGFwcGVuZCB0aGUgbnVsbCBzaW5jZSBJIHVzZWQgZG91YmxlCiAgICAvL3F1b3Rlc3doaWNoIGluZGljYXRlcyBpdCBpcyBhIHN0cmluZyBhbmQgaXMgbm90IGFuIG9yZGluYXJ5IGFycmF5CiAgICAKICAgIHRvVXBwZXIoIGFycmF5ICk7CgogICAgY291dCA8PCBhcnJheSA8PCBlbmRsOwp9Cgp2b2lkIHRvVXBwZXIoIGNoYXIgYXJyYXlbXSApCnsKICAgIGZvciggaW50IGkgPSAwOyBhcnJheVtpXTsgKytpICkKICAgICAgICBhcnJheVtpXSA9IHRvdXBwZXIoYXJyYXlbaV0pOyAvL2h0dHA6Ly93Li4uY29udGVudC1hdmFpbGFibGUtdG8tYXV0aG9yLW9ubHkuLi5zLmNvbS9yZWZlcmVuY2UvY2N0eXBlL3RvdXBwZXIvP2t3PXRvdXBwZXIKfQ==