单项选择题
算法分析的主要任务是分析()。
A.算法的执行效率与问题规模之间的关系
B.算法中是否存在语法错误
C.算法的功能是否符合设计要求
D.算法是否具有较好的可读性
点击查看答案&解析
相关考题
-
问答题
请写一程序,统计通过键盘输入的命令行中的第二个参数所包含的英文字符的个数。提示:使用带参数的main函数形式。 -
问答题
已知整型数组A[0..m-1][0..n-1],请写一函数,该函数返回数组最外围一圈元素之和。 -
填空题
下列程序的主要功能是()。 #include main( ) { FILE *in,*out; char ch,infile[10],outfile[10]; printf(“Enter the infile name:\n”); scanf(“%s”,infile); printf(“Enter the outfile name:\n”); scanf(“%s”,outfile); if((in=fopen(infile, “r”))==NULL){ printf(“Cannot open infile\n”); exit(0); } if((out=fopen(outfile, “w”))==NULL){ printf(“Cannot open outfile\n”); exit(0); } while(!feof(in)) fputc(fgetc(in),out); fclose(in); fclose(out); }
