A.1047,530
B.1048,531
C.2041,730
D.2042,731
[单选题]有以下程序#include <string.h>main( int argc, char *argv[ ]){ int i=1,n=0;while (i< argc) {n=n+strIen ( angv[i ] ) ;i++; }printf("%d/n",n);}该程序生成的可执行文件名为: proc.exe 。若运行时输入命令行:proc 123 45 67则程序的输出结果是A.)3B.)5C.)7D.)11
[单选题]有以下程序#include <stdio.h>struct stu{ int num; char name [10];int age;};Void fun(struct stu *p){ printf("%s\n,p->name);}main( ){ struct stu x[3]={ {01,”Zhang”,20},{02, ” Wang”,19},{03, ”zhao”,18} };fun(x+2);}程序运行后的输出结果是A.)ZhangB.)ZhaoC.)WangD.
[单选题]有以下程序#include
[单选题]有以下程序# include <string.h>main(){char p[20]={′a′, ′b′, ′c′, ′d′}, q[]="abc", r[]="abcde";strcat(p, r); strcpy(p+strlen(q), q);printf("%d/n",strlen(p));}程序运行后的输出结果是A.9B.6C.11D.7
[单选题]有以下程序# include <string.h>main(){char p[20]={′a′, ′b′, ′c′, ′d′}, q[]="abc", r[]="abcde";strcat(p, r); strcpy(p+strlen(q), q);printf("%d/n",strlen(p));}程序运行后的输出结果是A.9B.6C.11D.7
[单选题]有以下程序:#include
[单选题]有以下程序:include<stdio.h> include<string.h>main{ char x[]="STRING"有以下程序:include<stdio.h>include<string.h>main{ char x[]="STRING";x[0]=0;x[1]=/0;x[2]=0;printf("%d %d/n",sizeof(x),strlen(x));}程序运行后的输出结果
[单选题]有以下程序#include<stdio.h>#include<string.h>struet A{int a;char b[10];double c;};struct A f(struct A t);main( ){struct A a={1001,“ZhangDa”,1098.0);a=f(A);prinff(“%d,%S,%6.1f\n”,a.a,a.b,a.e);}struct A f(struct A t){t.a=1002;strepy(t.b,“changRo
[单选题]有以下程序#include<stdio.h>#include<string.h>main( ){char a[10]=”abcd”;prinff(“%d,%d\n”,strlen(A),sizeof(A));}程序运行后的输出结果是A.7,4B.4,10C.8,8D.10,lO
[单选题]有以下程序#include<stdio.h>#include<string.h>main( ){char str[][20]={“Qne*World”,“one*Dream!”},*P=str[1 ].prinff(“%d,”,strlen(p));printf(“%s\n”,P); ’}程序运行后的输出结果是A.9,One*World S)9,One*Dream!B.10,One*Dream!C.10,One*World