How to convert a string to the upper case

void ToUpper(char * S) {
  while ( * S != 0) {
    * S = ( * S >= 'a' && * S <= 'z') ? ( * S - 'a' + 'A') : * S;
    S++;
  }
}
Chitra
Chitra

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest updates on your inbox

Be the first to receive the latest updates from Codesdoc by signing up to our email subscription.

    StudentProjects.in