以下程序执行时输入LanguageProgramming<回车>,输出结果是________。#includevoidmain(){charstr[30];scanf("%s",str);printf("str=%s\n",str);}
A. LanguageProgramming
B. Language
C. str=Language
D. str=LanguageProguamming
查看答案
若staticfloatdata[8][5];所说明的数组在静态存储区中分配的十六进制起始地址为100H,则数组元素data[3][4]在静态存储区中的十六进制地址为________。(H表示十六进制数)
A. 126H
B. 11AH
C. 14CH
D. 134H
下面程序段运行后,输出结果是________。#include#includevoidmain(){inti;chars1[6]="abcd";strcpy(s1,"fg");for(i=0;i<5;i++)if(s1[i]!='\0')s1[i]+=i;puts(s1);}
A. fg
B. 编译出错
C. fgcd
D. fgabcd
下列程序运行后,输出的结果是________。#includevoidmain(){charp[][10]={"BOOL","OPK","H","SP"};inti;for(i=3;i>=0;i--,i--)printf("%c",p[i][0]);printf("\n");}
A. BOHS
B. SHOB
C. HB
D. SO
函数f的功能是:测定字符串的长度,空白处应填入________。#includeintf(chars[]){inti=0;while(s[i]!='\0')i++;return(________);}voidmain(){printf("%d\n",f("goodbye!"));}
A. i-1
B. i
C. i+1
D. s