首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
首页
>
教材全解
>
《C语言程序设计教程——李春葆 曾平 喻丹丹》
《C语言程序设计教程——李春葆 曾平 喻丹丹》
作者:李春苞 曾平 喻丹丹 出版社:清华大学出版社
第7章 函数
返回全部章节 >
题目
题型
在在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 <stdio.h> int f(int a,int b) { int c; if(a>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。
问答
首页
上一页
1
2
下一页
末页
全站近期热帖
两年后重看秋招——后悔选择读研,可到底该怎么做?
回复
(22)
发表于
2025-07-13 17:45:02
第一次面试就是字节!
回复
(6)
发表于
今天 17:10:46
秋招公司情报局,分享线索得牛币💰
回复
(57)
发表于
2025-07-11 18:10:47
手机厂工作一年了,给想进手机行业的兄弟们写点建议
回复
(7)
发表于
今天 09:47:26
百度提前批一面凉经
回复
(4)
发表于
今天 11:51:49
热门推荐
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题