当前位置:网站首页>第四次作业
第四次作业
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
边栏推荐
- 可以接收多種數據類型參數——可變參數
- C WPF UI framework mahapps switching theme
- Generate QR code through zxing
- 2022 Shandong Province safety officer C certificate work certificate question bank and online simulation examination
- IDEA查看历史记录【文件历史和项目历史】
- [MySQL] left function | right function
- Optimization of especially slow startup in idea debugging mode
- The query type of MySQL is very inefficient.
- Utgard connection opcserver reported an error caused by: org jinterop. dcom. common. JIRuntimeException: Access is denied. [0x800
- 12.<tag-链表和常考点综合>-lt.234-回文链表
猜你喜欢

超好用的【通用Excel导入功能】

2022T电梯修理考试模拟100题及在线模拟考试

Why is bi so important to enterprises?

ASP. Net 6 middleware series - conditional Middleware

12.<tag-链表和常考点综合>-lt.234-回文链表

Supersocket is Use in net5 - startup

The most understandable life cycle of dependency injection
![[vs Code] solve the problem that the jupyter file displays exceptions in vs code](/img/f6/a91d03fd140eb5f7688b72e2e6f2bb.png)
[vs Code] solve the problem that the jupyter file displays exceptions in vs code
![Use of ADB command [1]](/img/e6/fb8fd6956c226f75b831f8eb46277f.png)
Use of ADB command [1]

关于idea调试模式下启动特别慢的优化
随机推荐
Detailed description of MySQL index [B + tree index, hash index, full-text index, overlay index]
Ide-idea-problem
Téléchargement en vrac de fichiers - téléchargement après compression
ThreadLocal 测试多线程变量实例
[vs Code] solve the problem that the jupyter file displays exceptions in vs code
你真的懂hashCode和equals吗???
[MySQL] left Function | Right Function
队列的存储和循环队列
Configuration table and page information automatically generate curd operation page
Establishing and traversing binary tree
Advanced sorting - fast sorting
Super easy to use [general excel import function]
C introduction of variable parameter params
A set of combination boxing to create an idea eye protection scheme
Web Course Design - his system
[mock data] fastmock dynamically returns the mock content according to the incoming parameters
be based on. NETCORE development blog project starblog - (2) environment preparation and creation project
MySQL installation pit
二进制文件版本控制工具选择难?看完这篇你会找到答案
【VS Code】解决jupyter文件在vs code中显示异常的问题