Why output of this program is always:
example 
example
If i change first line with second in for loop, then output will look like this:
EXAMPLE
EXAMPLE
What i am doing wrong?
string key = "EXAmple";
string ukey = key; 
string lkey = key;
for (int i = 0; i < strlen(key); i++)
{
  ukey[i] = toupper(key[i]); 
  lkey[i] = tolower(key[i]);
}       
printf("%s\n", ukey);
printf("%s\n", lkey);
 
     
     
    