Tutorials, Free Online Tutorials,It Challengers provides tutorials and interview questions of all technology like java tutorial, android, java frameworks, javascript, core java, sql, php, c language etc. for beginners and professionals.

Breaking

6. Covert a string to upper case

6. Covert a string to upper case


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


No comments:

Post a Comment