upper to lower C return regular lowercase letters code example
Example: C string convert All Uppercse To Lowercase
#include <stdio.h>
#include <string.h>
int main() {
char s[100];
int i;
printf("\nEnter a string : ");
gets(s);
for (i = 0; s[i]!='\0'; i++) {
if(s[i] >= 'A' && s[i] <= 'Z') {
s[i] = s[i] + 32;
}
}
printf("\nString in Lower Case = %s", s);
return 0;
}