《C语言程序设计教程——李春葆 曾平 喻丹丹》

作者:李春苞 曾平 喻丹丹  出版社:清华大学出版社

题目 题型
在在C语言的定义中,以下描述哪些是正确的? 单选
在C语言的定义和调用中,下面描述哪些是正确的? 单选
有以下函数定义: void fun( int n,double x) {…} 若以下选项中的变量都已正确定义并赋值,则对函数fun的正确调用语句是哪个? 单选
已定义以下函数: fun(int *p) { return *p; } 该函数的返回值是什么? 单选
下列函数定义中,会出现编译错误的是哪个? 不定项选择
给出以下程序的执行结果。 #include <stdio.h> int f(int a,int b) {     int c;     if(a>b) c=1;     else if(a==b) c=0;     else c=- 问答
给出以下程序的执行结果。 #include &lt;stdio.h&gt; int f(int a,int b) {     int c;     if(a&gt;b) c=1;     else if(a==b) c=0;     else c=- 问答
给出以下程序的执行结果。 #include <stdio.h> int func(int a,int b) {     return(a+b); } void main() {     int x=2,y=5,z=8,r;     r=f 问答
给出以下程序的执行结果。 #include <stdio.h> void fun() {     static int m;     m+=2;     printf("%d",m); } void main() { 问答
给出以下程序的执行结果。 #include <stdio.h> int x=3; void incre() {     static int x=1;     x* =x+1;     printf("%d",x); 问答
给出以下程序的执行结果。 #include <stdio.h> void sub(int *s,int y) {     static int t=3;     y=s[t];     t--; } void main() {     i 问答
给出以下程序的执行结果。 #include<stdio.h> int fun(int m) {     static int t=3;     m+=t++;     return(m); } void main() {     int 问答
给出以下程序的执行结果。 #include <stdio.h> int f(int n) {     if (n==1)       return 1;     else       return f(n-1)+1; } void mai 问答
给出以下程序的执行结果。 #include <stdio.h> fun(int a,int b) {     if(a>b) return(a);     else return(b); } void main() {     in 问答
给出以下程序的执行结果。 #include <stdio.h> int a=5; fun(int b) {     static int a=10;     a+=b++;     printf("%d",a); } 问答
给出以下程序的执行结果。 #include <stdio.h> fun(int x) {     if (x/2>0) fun(x/2)     printf("%d",x); } void main() {   问答
编写一个函数fun,累积当前人数和总分,并返回当前为止的平均分。调用该函数输出10个学生的平均分统计结果。 问答
重做练习5的第13题,要求将n个a的值设计成一个函数。 问答
编写一个程序,计算任一输入整数的各位数字之和。 问答
用递归方法求12+22+32+…+n2。 问答