Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CSDN 技术社区
skill_tree_c
提交
a928dbe5
S
skill_tree_c
项目概览
CSDN 技术社区
/
skill_tree_c
通知
24
Star
4
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
skill_tree_c
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
a928dbe5
编写于
10月 21, 2021
作者:
M
Mars Liu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
reformat markdown
上级
38047f68
变更
32
隐藏空白更改
内联
并排
Showing
32 changed file
with
289 addition
and
125 deletion
+289
-125
data/1.C语言初阶/1.C语言概述/1.C语言发展史/helloworld.md
data/1.C语言初阶/1.C语言概述/1.C语言发展史/helloworld.md
+9
-4
data/1.C语言初阶/1.C语言概述/2.C语言特点/features.md
data/1.C语言初阶/1.C语言概述/2.C语言特点/features.md
+9
-4
data/1.C语言初阶/2.数据类型/1.变量/variables.md
data/1.C语言初阶/2.数据类型/1.变量/variables.md
+9
-4
data/1.C语言初阶/2.数据类型/2.常量/constants.md
data/1.C语言初阶/2.数据类型/2.常量/constants.md
+9
-4
data/1.C语言初阶/2.数据类型/3.基本数据类型/basic_data_types.md
data/1.C语言初阶/2.数据类型/3.基本数据类型/basic_data_types.md
+10
-4
data/1.C语言初阶/3.运算符与表达式/1.赋值运算符与表达式/assignment_op.md
data/1.C语言初阶/3.运算符与表达式/1.赋值运算符与表达式/assignment_op.md
+8
-4
data/1.C语言初阶/3.运算符与表达式/2.算术运算符与表达式/arithmetic_op.md
data/1.C语言初阶/3.运算符与表达式/2.算术运算符与表达式/arithmetic_op.md
+10
-4
data/1.C语言初阶/3.运算符与表达式/3.关系运算符与表达式/relational_op.md
data/1.C语言初阶/3.运算符与表达式/3.关系运算符与表达式/relational_op.md
+9
-4
data/1.C语言初阶/3.运算符与表达式/4.逻辑运算符与表达式/logical_op.md
data/1.C语言初阶/3.运算符与表达式/4.逻辑运算符与表达式/logical_op.md
+2
-1
data/1.C语言初阶/3.运算符与表达式/5.逗号运算符与表达式/comma_op.md
data/1.C语言初阶/3.运算符与表达式/5.逗号运算符与表达式/comma_op.md
+9
-4
data/1.C语言初阶/3.运算符与表达式/6.条件运算符/conditional_op.md
data/1.C语言初阶/3.运算符与表达式/6.条件运算符/conditional_op.md
+9
-4
data/1.C语言初阶/3.运算符与表达式/7.sizeof运算符/sizeof_op.md
data/1.C语言初阶/3.运算符与表达式/7.sizeof运算符/sizeof_op.md
+9
-4
data/1.C语言初阶/3.运算符与表达式/8.运算符优先级与求值顺序/precedence.md
data/1.C语言初阶/3.运算符与表达式/8.运算符优先级与求值顺序/precedence.md
+9
-4
data/1.C语言初阶/4.语句与控制流/1.语句与程序块/statements_n_blocks.md
data/1.C语言初阶/4.语句与控制流/1.语句与程序块/statements_n_blocks.md
+9
-4
data/1.C语言初阶/4.语句与控制流/2.判断语句/elseif.md
data/1.C语言初阶/4.语句与控制流/2.判断语句/elseif.md
+10
-4
data/1.C语言初阶/4.语句与控制流/2.判断语句/if.md
data/1.C语言初阶/4.语句与控制流/2.判断语句/if.md
+10
-4
data/1.C语言初阶/4.语句与控制流/2.判断语句/ifelse.md
data/1.C语言初阶/4.语句与控制流/2.判断语句/ifelse.md
+10
-4
data/1.C语言初阶/4.语句与控制流/2.判断语句/switch.md
data/1.C语言初阶/4.语句与控制流/2.判断语句/switch.md
+10
-4
data/1.C语言初阶/4.语句与控制流/3.循环语句/for.md
data/1.C语言初阶/4.语句与控制流/3.循环语句/for.md
+9
-4
data/1.C语言初阶/4.语句与控制流/3.循环语句/goto.md
data/1.C语言初阶/4.语句与控制流/3.循环语句/goto.md
+8
-4
data/1.C语言初阶/4.语句与控制流/3.循环语句/while.md
data/1.C语言初阶/4.语句与控制流/3.循环语句/while.md
+10
-4
data/2.C语言中阶/1.函数与程序结构/1.函数的参数/parameter_n_argument.md
data/2.C语言中阶/1.函数与程序结构/1.函数的参数/parameter_n_argument.md
+9
-4
data/2.C语言中阶/1.函数与程序结构/5.函数的递归/recursion.md
data/2.C语言中阶/1.函数与程序结构/5.函数的递归/recursion.md
+8
-4
data/2.C语言中阶/2.数组/1.数组简介/array_def.md
data/2.C语言中阶/2.数组/1.数组简介/array_def.md
+9
-4
data/2.C语言中阶/2.数组/2.一维数组/bubble_sort.md
data/2.C语言中阶/2.数组/2.一维数组/bubble_sort.md
+9
-4
data/2.C语言中阶/2.数组/3.二维数组/matrix.md
data/2.C语言中阶/2.数组/3.二维数组/matrix.md
+9
-4
data/2.C语言中阶/2.数组/4.变长数组/vla.md
data/2.C语言中阶/2.数组/4.变长数组/vla.md
+9
-4
data/2.C语言中阶/3.指针/1.指针与地址/pointers.md
data/2.C语言中阶/3.指针/1.指针与地址/pointers.md
+9
-4
data/2.C语言中阶/3.指针/2.指针与函数参数/pointers_n_func.md
data/2.C语言中阶/3.指针/2.指针与函数参数/pointers_n_func.md
+10
-4
data/2.C语言中阶/3.指针/3.指针与数组/pointers_n_array.md
data/2.C语言中阶/3.指针/3.指针与数组/pointers_n_array.md
+10
-4
data/2.C语言中阶/3.指针/4.地址算术运算/pointers_arithmetic_op.md
data/2.C语言中阶/3.指针/4.地址算术运算/pointers_arithmetic_op.md
+10
-4
data/2.C语言中阶/3.指针/7.指向函数的指针/pointers_2_func.md
data/2.C语言中阶/3.指针/7.指向函数的指针/pointers_2_func.md
+10
-4
未找到文件。
data/1.C语言初阶/1.C语言概述/1.C语言发展史/helloworld.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
输出 "Hello, World!" 字符串,找出正确的选项。
输出 "Hello, World!" 字符串,找出正确的选项。
##
A
##
答案
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -13,7 +13,10 @@ int main()
...
@@ -13,7 +13,10 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -24,7 +27,8 @@ int main()
...
@@ -24,7 +27,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -35,7 +39,8 @@ int main()
...
@@ -35,7 +39,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
...
...
data/1.C语言初阶/1.C语言概述/2.C语言特点/features.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
使用字符数组在控制台打印C语言的常见特点。请选出正确答案。
使用字符数组在控制台打印C语言的常见特点。请选出正确答案。
##
A
##
答案
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -28,7 +28,10 @@ int main()
...
@@ -28,7 +28,10 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -54,7 +57,8 @@ int main()
...
@@ -54,7 +57,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -80,7 +84,8 @@ int main()
...
@@ -80,7 +84,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
...
...
data/1.C语言初阶/2.数据类型/1.变量/variables.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
使用while循环修改变量值,依次打印10以内(包含10)所有正整数的平方。请从以下选项中找出正确答案。
使用while循环修改变量值,依次打印10以内(包含10)所有正整数的平方。请从以下选项中找出正确答案。
##
A
##
答案
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -24,7 +24,10 @@ int main()
...
@@ -24,7 +24,10 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -46,7 +49,8 @@ int main()
...
@@ -46,7 +49,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -68,7 +72,8 @@ int main()
...
@@ -68,7 +72,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdbool.h>
...
...
data/1.C语言初阶/2.数据类型/2.常量/constants.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
使用常量表示圆周率$
\p
i$,并计算半径为2的圆的面积。请从以下选项中找出错误答案。
使用常量表示圆周率$
\p
i$,并计算半径为2的圆的面积。请从以下选项中找出错误答案。
##
A
##
答案
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -19,7 +19,10 @@ int main()
...
@@ -19,7 +19,10 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -36,7 +39,8 @@ int main()
...
@@ -36,7 +39,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -52,7 +56,8 @@ int main()
...
@@ -52,7 +56,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
...
...
data/1.C语言初阶/2.数据类型/3.基本数据类型/basic_data_types.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
用不同的基本数据类型保存一名学生的各项信息,并打印输出。请选出正确答案。
用不同的基本数据类型保存一名学生的各项信息,并打印输出。请选出正确答案。
## A
## 答案
```
```
#include <stdbool.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdio.h>
...
@@ -29,7 +30,10 @@ int main()
...
@@ -29,7 +30,10 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdbool.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdio.h>
...
@@ -56,7 +60,8 @@ int main()
...
@@ -56,7 +60,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdbool.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdio.h>
...
@@ -83,7 +88,8 @@ int main()
...
@@ -83,7 +88,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdbool.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdio.h>
...
...
data/1.C语言初阶/3.运算符与表达式/1.赋值运算符与表达式/assignment_op.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
实现三个变量的赋值操作,并输出三个变量的值。请选出错误答案。
实现三个变量的赋值操作,并输出三个变量的值。请选出错误答案。
##
A
##
答案
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -18,7 +18,9 @@ int main()
...
@@ -18,7 +18,9 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -34,7 +36,8 @@ int main()
...
@@ -34,7 +36,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -53,7 +56,8 @@ int main()
...
@@ -53,7 +56,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
...
...
data/1.C语言初阶/3.运算符与表达式/2.算术运算符与表达式/arithmetic_op.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
打印100以内(包含100)能被10整除的正整数。请选出正确答案。
打印100以内(包含100)能被10整除的正整数。请选出正确答案。
## A
## 答案
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -19,7 +20,10 @@ int main()
...
@@ -19,7 +20,10 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -36,7 +40,8 @@ int main()
...
@@ -36,7 +40,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -53,7 +58,8 @@ int main()
...
@@ -53,7 +58,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
...
...
data/1.C语言初阶/3.运算符与表达式/3.关系运算符与表达式/relational_op.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
输入两个闭区间,并判断两个区间是否重叠。请选出错误答案。
输入两个闭区间,并判断两个区间是否重叠。请选出错误答案。
##
A
##
答案
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -24,7 +24,10 @@ int main()
...
@@ -24,7 +24,10 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -46,7 +49,8 @@ int main()
...
@@ -46,7 +49,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -71,7 +75,8 @@ int main()
...
@@ -71,7 +75,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
...
...
data/1.C语言初阶/3.运算符与表达式/4.逻辑运算符与表达式/logical_op.md
浏览文件 @
a928dbe5
...
@@ -7,7 +7,8 @@
...
@@ -7,7 +7,8 @@
*
该年份能被4整除同时不能被 100 整除。
*
该年份能被4整除同时不能被 100 整除。
## A
## 答案
```
```
#include <stdio.h>
#include <stdio.h>
...
...
data/1.C语言初阶/3.运算符与表达式/5.逗号运算符与表达式/comma_op.md
浏览文件 @
a928dbe5
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
请选出正确答案。
请选出正确答案。
##
A
##
答案
```
```
#include <stdio.h>
#include <stdio.h>
#define FIRST_COST 6
#define FIRST_COST 6
...
@@ -26,7 +26,10 @@ int main()
...
@@ -26,7 +26,10 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
#define FIRST_COST 6
#define FIRST_COST 6
...
@@ -46,7 +49,8 @@ int main()
...
@@ -46,7 +49,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
#define FIRST_COST 6
#define FIRST_COST 6
...
@@ -66,7 +70,8 @@ int main()
...
@@ -66,7 +70,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
#define FIRST_COST 6
#define FIRST_COST 6
...
...
data/1.C语言初阶/3.运算符与表达式/6.条件运算符/conditional_op.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
输入三个整数,求出最大值并输出。请选出错误答案。
输入三个整数,求出最大值并输出。请选出错误答案。
## A
## 答案
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -19,7 +20,9 @@ int main()
...
@@ -19,7 +20,9 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -36,7 +39,8 @@ int main()
...
@@ -36,7 +39,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -53,7 +57,8 @@ int main()
...
@@ -53,7 +57,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
...
...
data/1.C语言初阶/3.运算符与表达式/7.sizeof运算符/sizeof_op.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
定义并初始化一个整型数组(未显示指定数组长度),循环输出数组中的每个元素。请选出正确答案。
定义并初始化一个整型数组(未显示指定数组长度),循环输出数组中的每个元素。请选出正确答案。
## A
## 答案
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -19,7 +20,9 @@ int main()
...
@@ -19,7 +20,9 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -36,7 +39,8 @@ int main()
...
@@ -36,7 +39,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -53,7 +57,8 @@ int main()
...
@@ -53,7 +57,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
...
...
data/1.C语言初阶/3.运算符与表达式/8.运算符优先级与求值顺序/precedence.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
逗号运算符与自增运算符组成的混合表达式,请选出输出结果为
<font
color=
red
>
**2,3,1**
</font>
的选项。
逗号运算符与自增运算符组成的混合表达式,请选出输出结果为
<font
color=
red
>
**2,3,1**
</font>
的选项。
## A
## 答案
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -15,7 +16,10 @@ int main()
...
@@ -15,7 +16,10 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -28,7 +32,8 @@ int main()
...
@@ -28,7 +32,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -41,7 +46,7 @@ int main()
...
@@ -41,7 +46,7 @@ int main()
}
}
```
```
##
D
##
# C
```
```
#include <stdio.h>
#include <stdio.h>
...
...
data/1.C语言初阶/4.语句与控制流/1.语句与程序块/statements_n_blocks.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
使用循环逐个字符打印
**Hello World!**
,请选出错误答案。
使用循环逐个字符打印
**Hello World!**
,请选出错误答案。
## A
## 答案
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -18,7 +19,9 @@ int main()
...
@@ -18,7 +19,9 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -34,7 +37,8 @@ int main()
...
@@ -34,7 +37,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -52,7 +56,8 @@ int main()
...
@@ -52,7 +56,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
...
...
data/1.C语言初阶/4.语句与控制流/2.判断语句/elseif.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
输入三角形各边的长度,并判断三角形的类型。请选出正确答案。
输入三角形各边的长度,并判断三角形的类型。请选出正确答案。
## A
## 答案
```
```
#include <stdio.h>
#include <stdio.h>
#include <math.h>
#include <math.h>
...
@@ -34,7 +35,10 @@ int main()
...
@@ -34,7 +35,10 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
#include <math.h>
#include <math.h>
...
@@ -66,7 +70,8 @@ int main()
...
@@ -66,7 +70,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
#include <math.h>
#include <math.h>
...
@@ -98,7 +103,8 @@ int main()
...
@@ -98,7 +103,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
#include <math.h>
#include <math.h>
...
...
data/1.C语言初阶/4.语句与控制流/2.判断语句/if.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
任意输入3个整数,对这3个整数由小到大进行升序排序。请从以下选项中找出正确答案。
任意输入3个整数,对这3个整数由小到大进行升序排序。请从以下选项中找出正确答案。
## A
## 答案
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -34,7 +35,10 @@ int main()
...
@@ -34,7 +35,10 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -66,7 +70,8 @@ int main()
...
@@ -66,7 +70,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -98,7 +103,8 @@ int main()
...
@@ -98,7 +103,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
...
...
data/1.C语言初阶/4.语句与控制流/2.判断语句/ifelse.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
输入两个整数,求两个整数之间的较大值。找出正确的选项。
输入两个整数,求两个整数之间的较大值。找出正确的选项。
## A
## 答案
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -28,7 +29,10 @@ int main()
...
@@ -28,7 +29,10 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -54,7 +58,8 @@ int main()
...
@@ -54,7 +58,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -80,7 +85,8 @@ int main()
...
@@ -80,7 +85,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
...
...
data/1.C语言初阶/4.语句与控制流/2.判断语句/switch.md
浏览文件 @
a928dbe5
...
@@ -10,7 +10,8 @@
...
@@ -10,7 +10,8 @@
请从以下选项中找出正确答案。
请从以下选项中找出正确答案。
## A
## 答案
```
```
#include<stdio.h>
#include<stdio.h>
...
@@ -49,7 +50,10 @@ int main()
...
@@ -49,7 +50,10 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include<stdio.h>
#include<stdio.h>
...
@@ -88,7 +92,8 @@ int main()
...
@@ -88,7 +92,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include<stdio.h>
#include<stdio.h>
...
@@ -127,7 +132,8 @@ int main()
...
@@ -127,7 +132,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include<stdio.h>
#include<stdio.h>
...
...
data/1.C语言初阶/4.语句与控制流/3.循环语句/for.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
使用for循环,打印九九乘法表。找出正确的选项。
使用for循环,打印九九乘法表。找出正确的选项。
## A
## 答案
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -21,7 +22,9 @@ int main()
...
@@ -21,7 +22,9 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -40,7 +43,8 @@ int main()
...
@@ -40,7 +43,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -59,7 +63,8 @@ int main()
...
@@ -59,7 +63,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
...
...
data/1.C语言初阶/4.语句与控制流/3.循环语句/goto.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
使用goto语句求10以内的正整数之和。请选出错误答案。
使用goto语句求10以内的正整数之和。请选出错误答案。
##
A
##
答案
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -21,7 +21,9 @@ int main()
...
@@ -21,7 +21,9 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -40,7 +42,8 @@ int main()
...
@@ -40,7 +42,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -59,7 +62,8 @@ int main()
...
@@ -59,7 +62,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
...
...
data/1.C语言初阶/4.语句与控制流/3.循环语句/while.md
浏览文件 @
a928dbe5
...
@@ -4,7 +4,8 @@
...
@@ -4,7 +4,8 @@
1.
利用辗转相除法求出最大公约数。
1.
利用辗转相除法求出最大公约数。
2.
进而求出最小公倍数。
2.
进而求出最小公倍数。
## A
## 答案
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -35,7 +36,10 @@ int main()
...
@@ -35,7 +36,10 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -64,7 +68,8 @@ int main()
...
@@ -64,7 +68,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -95,7 +100,8 @@ int main()
...
@@ -95,7 +100,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
...
...
data/2.C语言中阶/1.函数与程序结构/1.函数的参数/parameter_n_argument.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
输入两个正整数m和n,求从m加到n的和(m <= n),并输出,请选出正确答案。
输入两个正整数m和n,求从m加到n的和(m <= n),并输出,请选出正确答案。
## A
## 答案
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -38,7 +39,9 @@ int main() {
...
@@ -38,7 +39,9 @@ int main() {
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -74,7 +77,8 @@ int main() {
...
@@ -74,7 +77,8 @@ int main() {
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -110,7 +114,8 @@ int main() {
...
@@ -110,7 +114,8 @@ int main() {
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
...
...
data/2.C语言中阶/1.函数与程序结构/5.函数的递归/recursion.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
使用函数递归的方法打印斐波那契数列的前n个数:0 1 1 2 3 5 8 13 21 34 ……, 找出正确的选项。
使用函数递归的方法打印斐波那契数列的前n个数:0 1 1 2 3 5 8 13 21 34 ……, 找出正确的选项。
##
A
##
答案
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -30,7 +30,9 @@ int main()
...
@@ -30,7 +30,9 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -58,7 +60,8 @@ int main()
...
@@ -58,7 +60,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -86,7 +89,8 @@ int main()
...
@@ -86,7 +89,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
...
...
data/2.C语言中阶/2.数组/1.数组简介/array_def.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
定义一个整型的一维数组,并打印数组中的元素。请选出错误答案。
定义一个整型的一维数组,并打印数组中的元素。请选出错误答案。
## A
## 答案
```
```
#include <stdio.h>
#include <stdio.h>
#define LEN 5
#define LEN 5
...
@@ -21,7 +22,9 @@ int main()
...
@@ -21,7 +22,9 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
#define LEN 5
#define LEN 5
...
@@ -39,7 +42,8 @@ int main()
...
@@ -39,7 +42,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
#define LEN 5
#define LEN 5
...
@@ -57,7 +61,8 @@ int main()
...
@@ -57,7 +61,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
#define LEN 5
#define LEN 5
...
...
data/2.C语言中阶/2.数组/2.一维数组/bubble_sort.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
用冒泡排序法对任意输入的10个整数按照从小到大的顺序进行排序。请选出正确答案。
用冒泡排序法对任意输入的10个整数按照从小到大的顺序进行排序。请选出正确答案。
##
A
##
答案
```
```
#include <stdio.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdbool.h>
...
@@ -44,7 +44,10 @@ int main()
...
@@ -44,7 +44,10 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdbool.h>
...
@@ -86,7 +89,8 @@ int main()
...
@@ -86,7 +89,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdbool.h>
...
@@ -128,7 +132,8 @@ int main()
...
@@ -128,7 +132,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdbool.h>
...
...
data/2.C语言中阶/2.数组/3.二维数组/matrix.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
基于二维数组实现线性代数中的矩阵转置。请选出错误答案。
基于二维数组实现线性代数中的矩阵转置。请选出错误答案。
## A
## 答案
```
```
#include <stdio.h>
#include <stdio.h>
#define LEN 101
#define LEN 101
...
@@ -45,7 +46,9 @@ int main()
...
@@ -45,7 +46,9 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
#define LEN 101
#define LEN 101
...
@@ -88,7 +91,8 @@ int main()
...
@@ -88,7 +91,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
#define LEN 101
#define LEN 101
...
@@ -130,7 +134,8 @@ int main()
...
@@ -130,7 +134,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
#define LEN 101
#define LEN 101
...
...
data/2.C语言中阶/2.数组/4.变长数组/vla.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
给定一个整型的二维数组,求二维数组中所有元素的和。请选出正确答案。
给定一个整型的二维数组,求二维数组中所有元素的和。请选出正确答案。
## A
## 答案
```
```
#include <stdio.h>
#include <stdio.h>
#define ROWS 3
#define ROWS 3
...
@@ -40,7 +41,9 @@ int main()
...
@@ -40,7 +41,9 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
#define ROWS 3
#define ROWS 3
...
@@ -76,7 +79,8 @@ int main()
...
@@ -76,7 +79,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
#define ROWS 3
#define ROWS 3
...
@@ -114,7 +118,8 @@ int main()
...
@@ -114,7 +118,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
#define ROWS 3
#define ROWS 3
...
...
data/2.C语言中阶/3.指针/1.指针与地址/pointers.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
使用指针交换两个变量的值。请选出正确答案。
使用指针交换两个变量的值。请选出正确答案。
##
A
##
答案
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -26,7 +26,10 @@ int main()
...
@@ -26,7 +26,10 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -48,7 +51,8 @@ int main()
...
@@ -48,7 +51,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -72,7 +76,8 @@ int main()
...
@@ -72,7 +76,8 @@ int main()
}
}
```
```
## D
### B
```
```
#include <stdio.h>
#include <stdio.h>
...
...
data/2.C语言中阶/3.指针/2.指针与函数参数/pointers_n_func.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
使用指针与函数交换两个变量的值。请选出错误答案。
使用指针与函数交换两个变量的值。请选出错误答案。
## A
## 答案
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -26,7 +27,10 @@ int main()
...
@@ -26,7 +27,10 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -55,7 +59,8 @@ int main()
...
@@ -55,7 +59,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -79,7 +84,8 @@ int main()
...
@@ -79,7 +84,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
...
...
data/2.C语言中阶/3.指针/3.指针与数组/pointers_n_array.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
给定一个数组,获取最大值及其下标并输出。请选出错误答案。
给定一个数组,获取最大值及其下标并输出。请选出错误答案。
## A
## 答案
```
```
#include <stdio.h>
#include <stdio.h>
#define LEN 10
#define LEN 10
...
@@ -26,7 +27,10 @@ int main()
...
@@ -26,7 +27,10 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
#define LEN 10
#define LEN 10
...
@@ -51,7 +55,8 @@ int main()
...
@@ -51,7 +55,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
#define LEN 10
#define LEN 10
...
@@ -76,7 +81,8 @@ int main()
...
@@ -76,7 +81,8 @@ int main()
}
}
```
```
## D
### B
```
```
#include <stdio.h>
#include <stdio.h>
#define LEN 10
#define LEN 10
...
...
data/2.C语言中阶/3.指针/4.地址算术运算/pointers_arithmetic_op.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
使用地址算术运算的方式,输出二维数组中的所有元素。请选出错误答案。
使用地址算术运算的方式,输出二维数组中的所有元素。请选出错误答案。
## A
## 答案
```
```
#include <stdio.h>
#include <stdio.h>
#define ROW 3
#define ROW 3
...
@@ -28,7 +29,10 @@ int main()
...
@@ -28,7 +29,10 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
#define ROW 3
#define ROW 3
...
@@ -53,7 +57,8 @@ int main()
...
@@ -53,7 +57,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
#define ROW 3
#define ROW 3
...
@@ -78,7 +83,8 @@ int main()
...
@@ -78,7 +83,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
#define ROW 3
#define ROW 3
...
...
data/2.C语言中阶/3.指针/7.指向函数的指针/pointers_2_func.md
浏览文件 @
a928dbe5
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
使用函数指针调用自定义函数。请选出错误答案。
使用函数指针调用自定义函数。请选出错误答案。
## A
## 答案
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -26,7 +27,10 @@ int main()
...
@@ -26,7 +27,10 @@ int main()
}
}
```
```
## B
## 选项
### A
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -50,7 +54,8 @@ int main()
...
@@ -50,7 +54,8 @@ int main()
}
}
```
```
## C
### B
```
```
#include <stdio.h>
#include <stdio.h>
...
@@ -74,7 +79,8 @@ int main()
...
@@ -74,7 +79,8 @@ int main()
}
}
```
```
## D
### C
```
```
#include <stdio.h>
#include <stdio.h>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录