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

The SDK directory does not exist (ubuntu 16.04) (react native) -

python - How to clone or copy a list? -

python - How to use Celery in Tornado with redis as broker and backend? -