以下程序 #include main() {char str[][20]={"Hello","Beijing"},*p=str; printf("%d ",strlen(p+20)); } 程序运行后的输出结果是
举一反三
- 有以下程序#include <stdio.h>#include <string.h>main(){ char str[ ][20]={“One*World”, “One*Dream!”},*p=str[1];printf(“%d,”,strlen(p));printf(“%s ”,p);}程序运行后的输出结果是()
- #include #include main() {char str[][20]={"One*World","One*Dream!"}; char *p=str[1]; printf(“%d,”,strlen(p)); printf("%s ",p); } 程序运行后的输出结果是
- 有以下程序 void main() {char str[][10]={"China","Beijing"},*p=str; printf("%s\n",p+10);} 程序运行后的输出结果是______。 A: China B: Beijing C: ng D: ing
- 以下程序的输出结果是:________ int main() { static char str[ ]="Beijing"; printf("%d\n",strlen(strcpy(str,"China"))); }
- 下列程序运行后的输出结果是______ int main(){ char str[]="The_Microsoft"; int n=4; sub(str,0,n-1); sub(str,0,strlen(str)-1); printf("%s\n",str);}sub(str,n1,n2){ char *str; int n1,n2; char c,*p; p=str+n2; str=str+n1; while(str