当前位置:网站首页>第四次作业
第四次作业
2022-04-23 03:22:00 【每天都要学一点哦】
目录末尾
简单完成一个作业,后面会发详细的解析 |
一、
关于static说法不正确的是:( )
A.static可以修饰局部变量
B.static可以修全局变量
C.static修饰的变量不能改变
D.static可以修饰函数
二、
下面代码的结果是什么?( )
A. 6,8,10,12,14
B.8,10,12,14,16
C.10,12,14,16,18
D.12,14,16,18,20
#include <stdio.h>
int sum(int a)
{
int c = 0;
static int b = 3;
c += 1;
b += 2;
return (a + b + c);
}
int main()
{
int i;
int a = 2;
for (i = 0; i < 5; i++)
{
printf("%d,", sum(a));
}
}
三、
关于指针说法正确的是:( )
A.sizeof(char*)大小一定是1
B.指针变量是个变量,用来存放地址
C.指针变量的大小都是4个字节
D.指针不是变量
四、
BC131-kiki学程序设计基础
kiki学程序设计基础
五、
BC123-小乐乐找最大数
小乐乐找最大数
六、
BC27-计算球体的体积
计算球体的体积
七、
BC25-计算体重指数
计算体重指数
(转自比特就业课)
版权声明
本文为[每天都要学一点哦]所创,转载请带上原文链接,感谢
https://blog.csdn.net/iqrmshrt/article/details/124358111
边栏推荐
- Chapter 9 of C language programming (fifth edition of Tan Haoqiang) analysis and answer of exercises for users to establish their own data types
- [vs Code] solve the problem that the jupyter file displays exceptions in vs code
- Student achievement management
- C WPF UI framework mahapps switching theme
- Chapter 7 of C language programming (fifth edition of Tan Haoqiang) analysis and answer of modular programming exercises with functions
- MySQL keyword group_ Concat, combined connection query
- Optimization of especially slow startup in idea debugging mode
- MySql分组查询规则
- 《C语言程序设计》(谭浩强第五版) 第7章 用函数实现模块化程序设计 习题解析与答案
- 手机连接电脑后,QT的QDIR怎么读取手机文件路径
猜你喜欢
研讨会回放视频:如何提升Jenkins能力,使其成为真正的DevOps平台
[Mysql] LEFT函数 | RIGHT函数
超好用的Excel异步导出功能
Optimization of especially slow startup in idea debugging mode
Drawing polygons with < polygon / > circular array in SVG tag
IDEA查看历史记录【文件历史和项目历史】
[mock data] fastmock dynamically returns the mock content according to the incoming parameters
TCP three handshakes and four waves
[MySQL] left function | right function
手机连接电脑后,QT的QDIR怎么读取手机文件路径
随机推荐
集合之List接口
MySQL之explain关键字详解
Mysql database design specification
队列的存储和循环队列
Téléchargement en vrac de fichiers - téléchargement après compression
可以接收多种数据类型参数——可变参数
Establishing and traversing binary tree
MySql关键字GROUP_CONCAT,组合连接查询
Fight leetcode again (290. Word law)
移植tslib时ts_setup: No such file or directory、ts_open: No such file or director
12.<tag-链表和常考点综合>-lt.234-回文链表
2022T电梯修理考试模拟100题及在线模拟考试
This new feature of C 11, I would like to call it the strongest!
General testing technology [1] classification of testing
Mysql database, inconsistent index character set, slow SQL query, interface timeout
Node configuration environment CMD does not take effect
Test experience data
be based on. NETCORE development blog project starblog - (2) environment preparation and creation project
C WPF UI framework mahapps switching theme
月薪10k-20k都无法回答的事务问题,你会吗?