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

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -

angular - DownloadURL return null in below code -