I wrote this code -
char s1[10] = "he", s2[20] = "she", s3[30], s4[30];
printf("%d %d", strlen(s2) + strlen(s3), strlen(s4));
output -
6 9
Then I wrote this code -
char s1[10] = "he", s2[20] = "she", s3[30], s4[30];
printf("%d %d", strlen(s3), strlen(s4));
by removing strlen(s1) +
output -
0 3
My question in how the length of string s4 changes ?