欢迎来到淘文阁 - 分享文档赚钱的网站! | 帮助中心 好文档才是您的得力助手!
淘文阁 - 分享文档赚钱的网站
全部分类
  • 研究报告>
  • 管理文献>
  • 标准材料>
  • 技术资料>
  • 教育专区>
  • 应用文书>
  • 生活休闲>
  • 考试试题>
  • pptx模板>
  • 工商注册>
  • 期刊短文>
  • 图片设计>
  • ImageVerifierCode 换一换

    2022年C语言基础知识归纳2 .pdf

    • 资源ID:56688538       资源大小:38.56KB        全文页数:9页
    • 资源格式: PDF        下载积分:4.3金币
    快捷下载 游客一键下载
    会员登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录   QQ登录  
    二维码
    微信扫一扫登录
    下载资源需要4.3金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    2022年C语言基础知识归纳2 .pdf

    .1/9 C 语言基础知识1.每个 C 程序有且只有一个主函数main(),且程序必须从main()函数开始执行,并在main()函数中结束。2.在 C 语言中,用e 来表示科学计数法时,规定在e 的前面必须有数字,后面必须为整数。3.用单引号括起来的一个字符常量只能存放一个字符;C 语言中没有字符串变量,只能用字符数组来存储字符串。4.外部变量在编译时由系统分配永久的内存空间,所以外部变量的类型不是自动存储类别。5.在一个函数内的复合语句中定义的变量,只能在这个复合语句范围内有效。6.用 sizeof(int)计算 int 类型数据的字节数。7.C 语言运行时,首先系统检查语法的正误,再运行程序的语法;语言中,可以在一个函数中嵌套一个函数,但是不能在一个函数中定义一个函数;只有在函数外部定义的函数才是外部函数;语言的子程序有过程和函数两种。8.预处理命令行的位置没有规定,只是习惯放在前面;在源文件中的可以有多条预处理命令,但一行只能写一条;宏名的大写只是习惯性的表示;宏替换不仅不占用运行时间还不分配内存空间。9.函数的作用是检查文件是否结束,当结束时返回的值为非零,否则为零。.2/9 10.当定义了数组后,在给其赋值时,不能直接把字符串赋给数组名。11.在赋值表达式中,赋值运算符“”右侧不能为表达式;在求余运算符中的两侧都必须为整型;在强制类型转换时,类型名应用括号括起来。12.静态局部变量,只有当程序结束后,其值才释放。13.当调用函数时,实参是一个数组名,则向函数传送的是数组每一个元素的地址。14.算法的特点为有零个或多个输入,有一个或多个输出,当相同的输入时,其结果相同;算法正确的程序最终一定会结束。15.在 C 语言中,预处理命令行都以“#”开头;当需要时才用#include;预处理的作用就是实现宏定义和条件编译。16.当数组元素的下标超出了定义的下标范围时,系统不给出“下标越界”的字样,而是得出错误的答案,因此在编程时务必检查下标是否越界。17.共用体变量不能作为函数的参数,也不能使函数带回共用体变量。18.指向函数的指针变量的定义形式为:数据类型(*指针变量)();,因此其为指向函数的指针变量。19.用 C 语言编写的代码程序是源程序,只有通过编译、连接才能进行。20.在说明为 static 时,其生存期得到延长,而其作用域并没有改文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3 .3/9 变,在定义后系统会自动帮它赋值为0,static 为关键字不能被用作它用。21.频繁地使用空语句会降低程序的可读性和运算速度。22.运算符%两边都应是整数,赋值语句左边应该是变量,而非表达式,强制转换语句强制类型应加括号。23.在逻辑运算符中,其两侧的运算符对象为任意合法的表达式即可。24.函数 fread(&Iarray,2,16,fp)的功能是,从fp 所指的数据文件中读取 16 次 2 字节的数据存储到数组Iarray 中。25.整个流式文件也可以随机存取数据,C 语言文件中有好多函数可以达到写入数据时,未经输入数据,达到不覆盖的目的,在进行写操作时,系统会自动关闭文件。26.使用 putchar、getchat、puts、gets、printf、scanf 函数时,必须在程序的开头出现包含头文件#include”stdio.h”的命令行,而使用字符串处理函数时,必须在程序的开头出现包含头文件#include”string.h”命令行,而使用数学函数时,必须在程序的开头出现包含头文件#include”math.h”的命令行。27.一个斜杠与小于等于127 任意数字按一个字符计算,一个斜杠与任意一个字符按一个字符计算。28.一个 C 程序可以有一个或多个程序文件,也可以有一个或多个函数,所以一个C 语言程序可以实现多种算法。29.根据 C 语言规定,注释语句可以换行写,并且一个“/*”和文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3 .4/9 其后紧跟的第一个“*/”中间的部分是注释内容,且注释内容不参与程序的运行。例如:b=0;/*b=20;给 b 赋值*/则 b=0;。30.sizeof 是求字节数的运算符,包括0,而 strlen 是求字符串的实际长度的函数,不包括0,以 0作为结束。31.在函数声明时,其中的形参变量、个数、函数的类型必须一致。32.C 语言源程序经编译后生成后缀为.obj 的目标程序;C 程序经过编译、连接步骤之后才能形成一个真正可执行的二进制机器指令文件;用C 语言编写的程序称为源程序,它以ASCII代码形式存放在一个文本文件中。并不是源程序中的所有行都参加编译。在条件编译形式下,相关内容只在满足一定条件时才进行编译。33.switch 括号后的表达式可以使任何表达式;case 后的表达式必须是常量表达式,常量表达式中不能出现变量,且类型必须是整数、字符型或枚举型。34.C 程序必须由一个或一个以上的函数组成;函数调用可以作为一个独立的语句存在;若函数有返回值,必须通过return语句返回。35.在 C 语言中,数据只能从实参单向传递给形参,称为“按值”传递。【在实参传递到形参时,是数值传递,而不是地址传递,形参中值的改变不会影响实参中的值。】36.可以用 typedef 声明新的类型名来代替已有的类型名,而不能文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3 .5/9 增加新的类型。37.在没有限制输出宽度时,一般浮点数的小数位数是6 位,不管输出格式是%f 或 lf%均如此。38.C 语言中,函数的隐含存储类别是无存储类别。39.当实参传递到形参时,地址传递时形参的改变影响实参。40.串的长度指的是串中的字符的个数,且其字符个数可以为零。41.C 语言中数据类型有整型、实型、字符型等,实行数据分为单精度型和双精度型两种。42.整型数组只能一个一个地输入或输出,而在字符型数组中可以对字符串整体地输入与输出。43.C 语言中,文件型指针变量的定义形式为:FILE*文件型指针名;。C 语言中对二进制文件的访问速度比文本文件快;C语言中,随机文件以二进制代码形式存储数据;C 语言中的文本文件以 ASCII 码形式存储数据。44.因为#define 是宏定义的标志,而不是C 语句,而 printf 是输出函数,因此其是C 语句。45.在实参传递给形参时,地址传递时能够改变,而数值传递时则不变。46.在 scanf函数中,必须含有输入项,并且需含有与之一一对应的转换说明符,在 scanf 函数的格式字符前可以加入一个正整数指定输入数据的宽度,但不可以实数指定小数位的宽度,输入项是地址表达式。文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3 .6/9 47.switch 语句使用注意事项:(1)switch 语句与 if 语句不同,仅能判断一种关系:是否恒等;(2)switch 语句中 case子句的常量可以使整型常量、字符型常量、枚举型数据,或是整型常量表达式,不允许变量;(3)在同一个switch 中,case子句的常量不能相同,在嵌套的switch 语句中,不同层次的switch 之间,可有相同的常量;(4)default 子句可以省略。例如:default:printf(“En”);(5)case和 default 子句只能在switch 语句中使用,且case和 default 只起标号作用,可出现在 switch 中的任何位置;(6)case和 default 子句后面的语句序列允许由多个可执行语句组成,且不必用“”括起来,也可以为空语句;(7)switch 语句中可省略break语句,但省略后会改变流程。48.break 语句是限定转向语句,它使流程跳出所在的结构,把流程转向所在结构之后。continue 语句被称为继续语句。该语句的功能是使本次循环提前结束,即跳过循环体中continue 语句后面尚未执行的循环体语句,继续进行下一次循环的条件判别。49.在 C 语言中,一个程序必须有一个main()函数,但是其文件就不一定,因为其可以通过链接来实现多个子函数放到这个主函数中,主函数的位置是不固定的,可以根据自己的爱好和习惯来使用,在C 语言中任何函数都不能调用主函数,且与函数的位置有关。在 C 程序的函数中不能定义另一个函文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3 .7/9 数。50.在用 fprintf 输入时,要将其转换为二进制数形式放到文件中。51.由 C 语言构成的指令序列称为C 源程序,源程序文件的后缀为“.c”。而目标程序为“.obj”,可执行程序为“.exe”。52.在 C 语言中,合法的标识符可以由字母、数字和下划线组成,且第一个字符必须为字母或下划线。53.C 语言规定必须以main 作为主函数名。程序要从 main()函数开始执行,最后在main()函数中结束。54.赋值运算符左侧的操作数必须是一个变量。55.在 C 语言中,函数的实参单元与形参单元在内存中分配不同的存储单元。56.在一个 C 语言源程序文件中所定义的全局变量,其作用域为:由具体定义位置和extern 说明来决定范围。【全局变量是在函数外部任意位置上定义的变量,它的作用域是从变量定义的位置开始,到整个源文件结束止。当全局变量定义在后,引用它的函数在前时,应该在引用它的函数中用extern 对此全局变量进行说明,以便通知编译程序该变量是一个已在外部定义了的全局变量,这时全局变量的作用域从extern 说明处起,延伸到该函数末尾。】57.C 语言中,凡是以“#”号开头的行,都成为“编译预处理”。对 C 原程序进行编译前,由编译预处理程序对这些变异预处理命令进行处理。文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4O1 ZM6Z4T10A8N3文档编码:CG4T8H9S9C6 HN2J1N1C4

    注意事项

    本文(2022年C语言基础知识归纳2 .pdf)为本站会员(H****o)主动上传,淘文阁 - 分享文档赚钱的网站仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知淘文阁 - 分享文档赚钱的网站(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于淘文阁 - 版权申诉 - 用户使用规则 - 积分规则 - 联系我们

    本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

    工信部备案号:黑ICP备15003705号 © 2020-2023 www.taowenge.com 淘文阁 

    收起
    展开