题目内容

在结构化程序设计中,限制使用goto语句的原因是( )。

A. 提高程序的执行效率
B. 提高程序的清晰性和可靠性
C. 便于程序的合成
D. 该语句对任何结构的程序都不适用

查看答案
更多问题

有以下程序: void fun(char*a,char *b) a=b; (*a)++; void main() char c1='A',c2='a',*p1,*p2; p1=&c1; p2=&c2; fun(p1,p2); printf("%c%c\n",c1,c2); 程序运行后输出的结果是( )。

Ab
B. aa
C. Aa
D. Bb

有以下程序: #include <string.h> void f(char p[][10], int n)/*字符串从小到大排序*/ char t[10]; int i,j; for (i=0; i<n-1; i++) for(j=i+1;j<n;j++) if (strcmp(p[i],p[j])>0)strcpy(t,p[i]); strcpy(p[i],p[j]); strcpy(p[j],t); main() char p[5][10]="abc"," aabdfg"," abbd","dcdbe"," cd"); f(p,5); printf("%d\n",strlen(p[0])); 程序运行后输出的结果是( )。

A. 2
B. 4
C. 6
D. 3

设有如下程序段: char s[20]="Beijing",*p; p=s; 则执行p=s;语句后,以下叙述正确的是( )。

A. 可以用*p表示s[0]
B. s数组中元素的个数和p所指字符串长度相等
C. s和p都是指针变量
D. 数组s中的内容和指针变量p中的内容相同

—Could you please tell me ______ —Go upstairs and turn left.

A. what is the teacher's office
B. what the teacher's office is
C. where is the teacher's office
D. where the teacher's office is

答案查题题库