Case Conversion in Strings

Learn about converting strings to uppercase and lowercase.

String conversion to lowercase

Let’s make a strLower() function in which we need to convert uppercase alphabets to lowercase by adding the ASCII value. For example, if the ASCII value of A is 65, simply add 32 to convert it into lowercase. If you don’t remember the ASCII value, you can add the following in the alphabet:

alphabet+'a'-'A'

Get hands-on with 1200+ tech skills courses.