c - Lower the input that we get from user using scanf -


i new c , trying lowercase letters user using scanf.

my code:

#include <stdio.h> #include <windows.h>  int main() {     printf("which animal referred ship of desert? \n");     // answer "camel"     scanf(" %c", &camel);     printf(" %c",camel);  } 

i tried using strlwr don't know how use , tried using like:

char camel; camel = strlwr(camel); 


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -