Program to change lowercase to uppercase and vice-versa or C Program to Replace Lowercase Characters by Uppercase & Vice versa or Convert Upper to Lower Case Alphabets & Vice-versa or How to convert a given string into lowercase and uppercase without using library functions in C or C program to change case of a string or Case conversion (Lower to Upper and Vice Versa) of a string or conversion from uppercase to lowercase using c program or Convert all lowercase characters to uppercase and vice-versa.
Explanation:-
As we know that for an every character in keyboard has unique ASCII Value for Capital Alphabet(Upper Case) and Small Alphabet(Lower Case) so for converting a any case to any case (lower case to upper case and upper case to lower case) we have to remember number 32 cause this is a number for converting an any string into any case we have to just add the number 32 or minus the number 32 from each character of the string and we solved our conversion problem. I strongly recommend checking the ASCII program in C. So in this problem, we are just comparing if the number is less then the lower case ASCII number change convert it into the upper case or vice versa.
Output:
=================================
nerdutella.com
=================================
Enter The String :examples
Convert String (Lower/Upper) IS:EXAMPLES
Enter The String: PROGRAMMING
Convert String (Lower/Upper) Is: programming
need an explanation for this answer? contact us directly to get an explanation for this answer