I'm having problems with using the "tolower".
I made a very small program to test:
Code:#include <stdio.h> #include <ctype.h> int main() { char ch; printf("Enter A Letter\n"); scanf("%c", ch); ch = tolower(ch); printf("%c", ch); return 0; }
This is what happens when I run the program:
The last line is the error. What am I doing wrong!?
Enter A Letter
G
Segmentation fault



LinkBack URL
About LinkBacks


