#include <stdio.h>
int main() {
char s1[] = "TajMahal";
int i = 0;
while(s1[i] != '/0') {
i++;
}
printf("Length of string '%s' is %d", s1, i);
return 0;
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/265341.html