题目在这里:c语言笔试面试大全,C语言基础笔试题_Thomas杨大炮的博客-CSDN博客t
2. C语言程序的三种基本结构都有哪些呢?
3. 递归调用和间接递归调用
定义
用途:递乘,递加
4. 文本文件和二进制文件
定义
二进制文件的来源
6、应该是不合法的数据类型吧?“unknown type name 'integer”
7. %模运算。
情况一:
error: invalid operands to binary % (have 'int' and 'double')|
情况二:
error: invalid operands to binary % (have 'double' and 'int')|
情况三:
error: invalid operands to binary % (have 'double' and 'double')|
9.实在函数
举个例子把,比如有这个一个函数int a(int b){...};
其中那个b就是形式参数,当你调用这个函数时a(3){...};
3就是实在参数.
1、它们的地址值是相等的。
2、第1个元素的地址如果是p,则p+1就是第2个元素的地址。
参考https://zhidao.baidu.com/question/581103677.html
3、数组的首地址如果是p,则p+1就跳过第一个元素而指向下一个元素的第一字节吧?(测试代码如下)。
11、这题好像有错。
C语言中提供的不合法关键字是____ A、switch B、cher C、case D、default、选B
- 顺序存取,文件读写数据的顺序和数据在文件中的物理顺序是一致的。
随机存取,对任何位置上的数据进行访问。如,读取第2,4,6......个学生的成绩。
- C语言基本数据类型
- sizeof(float) = 4
16.
printf("10!=9 = %d\n", 10!=9);
结果:1
18.TC20
Turbo C 2.0和Turbo C 3.0有什么不同?
c语言中,int最大值是2147483647。
结果:i = 65536
20、嵌套子程序,解释。我不懂。
嵌套分支学习
21、基类型相同的指针可以进行哪些运算
22、A和C好像都可以。参考这个解析吧?
25、运行了一下选D。
请参考:
写代码测试一下
结果:811
26、请参考百度知道。
27、请参考百度知道。
28、为什么unsigned (-1)表示无符号整数的最大值
B站视频降解:原码、反码和补码的相关知识点
测试 a=1的代码。
结果:1
32、请参考百度知道。
34、题目有误,请参考 https://wenku.baidu.com/view/70aa1b93ba4ae45c3b3567ec102de2bd9705deeb.html
输入:
1 2
A B C
输出:
12ABC
35、
输出:
error: assignment to expression with array type
输出:
abcd
37、解析请参考
https://zhidao.baidu.com/question/1995683390006611827.html
39、请参考解析
https://zhidao.baidu.com/question/1610323561555898787.html
和
常量、变量和表达式可作为实参。
40、题目有误,题目和解析请参考
https://zhidao.baidu.com/question/1738378297675767507.html
41、题目有错误,题目和解析请参考
https://easylearn.baidu.com/edu-page/tiangong/questiondetail?id=1711626220543333419&fr=search
42、题目有错误,题目和解析请参考
43、解析请参考
https://easylearn.baidu.com/edu-page/tiangong/questiondetail?id=1722748099962623213&fr=search
46、C语言 逻辑运算符及其优先级
题目有错,请参考
47、取最后一个数
逗号表达式和括号的问题,请参考
https://zhidao.baidu.com/question/439246879962650684.html
49、题目有错,请参考
https://qb.zuoyebang.com/xfe-question/question/72730c220ca917dcc3c77c97ca82bfa1.html