+ 3
why it is not printing the length of string?
#include<cstdio> #include<string.h> int main() { char s[100]; scanf("%s",s); int n=strlen(s); printf("%n",&n); }
4 Antworten
+ 5
you are supposed to use %d instead of %n in last line
+ 2
What you wanted to print?
strlen function is used to print length of string.
+ 1
i want to print length.
it is not printing
0
thanks
i got it