![]() |
In C++, converting a string to uppercase means we have to convert each character of the string that is in lowercase to an uppercase character. In the article, we will discuss how we can convert a string to uppercase in C++. Example Input: horje Output: GEEKSFORGEEKS Converting String to Uppercase in C++In C++, we can convert a string to uppercase using the toupper() function that converts a character to uppercase. We will apply this function to each character in the string using C++ Program to Convert a String to UppercaseC++
Output
Input String is: horje String after conversion to uppercase: GEEKSFORGEEKS |
Reffered: https://www.geeksforgeeks.org
C++ |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 13 |