0
Why it is showing compiler error?
#include <stdio.h> #include <string.h> int main() { char a[100]; int length; printf("Enter a string to calculate it's length\n"); gets(a); length = strlen(a); printf("Length of the string = %d\n",length); return 0; }
2 ответов
+ 3
Mahir
it worked fine for me when I removed the blank lines
https://code.sololearn.com/c299GDIhjqnC/#c
+ 2
This was from a teacher of mine. He said to me to copy paste and see what happens. I didn’t know it would show me an error. But thanks man!