以下程序的功能是计算字符串的长度。请填空。 #include<stdio.h>
题型:填空题
问题:
以下程序的功能是计算字符串的长度。请填空。 #include<stdio.h> main() {char str[100],*sp=str; int nlen=0; scanf("%s",str); for(;*sp!=’\0’;sp++)______; printf("%d",nlen); }
以下程序的功能是计算字符串的长度。请填空。 #include<stdio.h> main() {char str[100],*sp=str; int nlen=0; scanf("%s",str); for(;*sp!=’\0’;sp++)______; printf("%d",nlen); }