I'm new at C and I have a little problem. I need to write a program where the user enters text and the program shows how long it is.
I tried with strlen(), but it's not what I want.
char a[20];
scanf("%s",a)
And if I type "Hello world" the result is 5, but I need 11.
I need to use scanf, but maybe it's impossible to do that with it...