Please explain how it works?it is for finding length of string. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Please explain how it works?it is for finding length of string.

char s1[] = "TajMahal"; int i = 0; while(s1[i] != '\0') { i++; } printf("Length of string '%s' is %d", s1, i); return 0; }

23rd Sep 2017, 5:33 AM
SAKSHI
SAKSHI - avatar
0 Answers