设有 char str [ ] = “ Beijing ” ; 则执行 printf ( “ %d ”, strlen (strcpy (str , “China ” ) ) ) ; 后的输出结果是( )
5
举一反三
- 以下程序的输出结果是:________ int main() { static char str[ ]="Beijing"; printf("%d\n",strlen(strcpy(str,"China"))); }
- 设char str[10]=”ABCDE”,str2[10]=”XYZ”;则执行语句 printf(“%d”,strlen(strcpy(str1,str2));后的输出结果是___________
- 以下程序段执行后,输出结果是() char str[ ]=“ab \012\”; printf(“%d”,strlen(str));
- 设有定义 char str[]=”game_over”,*p=&str[0]; 则语句printf(“%d,%d”,sizeof[str],strlen(p)) 的输出结果是_____.
- 设有定义 char str[] = "Hello"; 则语句 printf("%d %d", sizeof(str), strlen(str)); 的输出结果是( )
内容
- 0
以下语句char str[10]={"China"};printf("%d",strlen(str));输出结果是____。
- 1
设有语句static char str[10]={"china"};printf("%d",strlen(str));则输出结果是( ) 未知类型:{'options': ['10', '5', 'china', '6'], 'type': 102}
- 2
以下语句输出的结果是______ 。 char<br/>str[10]={"china"}; printf("%d",strlen(str));
- 3
中国大学MOOC: 设有如下形式的字符数组定义:char str[]=”welcome”;则执行下列语句后的输出结果( )。printf(“%d\n”,strlen(strcpy(str,“Hello”)));
- 4
下列语句的执行结果是。 static char str[10]={“china”}; printf(“%d”,strlen(str));