int main() { char s[ ]="hello world"; len=strlen(s); printf("lenght of string is %d",len); /* prints the string lenght */ }
while we take string from terminal instead of char s[ ]="hello world"; then why it is necessary to take particular size in array char s[ ] ?? it shows error that array size missing in 's'. why???