填空题

问题处理方案的正确而完整的描述称为 【1】 。

【参考答案】

算法
<上一题 目录 下一题>
热门 试题

单项选择题
以下程序中函数reverse的功能是对a所指数组中的内容进行逆置。 void reverse(int a[], int n) int i, t; for(i=0; i<n 2; i++) t=a[i]; a[i]=a[n-1-1]; a[n-1-i]=t; main() int b[10]=1, 2, 3, 4, 5, 6, 7, 8, 9, 10; int i, s=0; reverse(b, 8); for(i=6; i<10; i++) s+=b[i]; printf( % d n , s); 程序运行后的输出结果是______。
A.22
B.10
C.34
D.30
单项选择题
有以下程序: struct STU char name[10]; int num; float TotalScore; ; void f(struct STU *p) struct STU s[2]= SunDan , 20044, 550, Penghua , 20045, 537, *q=s; ++p; ++q; *p=*q; main() struct STU s[3]= YangSan , 20041, 703, LiSiGuo , 20042, 580; f(s); printf( % s % d % 3.0f n , s[1]. name, s[1]. num, s[1]. TotalScore); 程序运行后的输出结果是______。
A.SunDan 20044 580
B.Penghua 20045 537
C.LiSiGUO 20042 580
D.SunDan 20041 703
相关试题
  • 有以下程序: main() int num[4][...
  • 以下程序运行后的输出结果是 【15】 。...
  • 有以下程序: main() int a[]=1,...
  • 以下程序中函数huiwen的功能是检查一个宁符...
  • 函数fun的功能是计算xn: double fun(do...