C program to change case of a string
Strlwr function convert a string to lower case and strupr function convert a string to upper case.Here we will change string case with and without strlwr, strupr functions. These functions convert case of alphabets and ignore other characters which may be present in a string.
Table Of Content
strlwr in c
[ad type=”banner”]strupr in c
[ad type=”banner”]Change string to upper case without strupr
Change string to lower case without strlwr
You can also implement functions using pointers.
[ad type=”banner”]C program to change case from upper to lower and lower to upper
Below program change case of alphabets if a lower case alphabet is found it is converted to upper and if an upper case is found it is converted to lower case.
Output of program:
Input a string
abcdefghijklmnopqrstuvwxyz{0123456789}ABCDEFGHIJKLMNOPQRSTUVWXYZ
ABCDEFGHIJKLMNOPQRSTUVWXYZ{0123456789}abcdefghijklmnopqrstuvwxyz
If a digit or special character is present in string.


