当前位置:网站首页>C语言c89(c90)的所有的32个关键字分类
C语言c89(c90)的所有的32个关键字分类
2022-06-23 22:18:00 【云朵c】
数据类型关键字(12个)
char :声明字符型变量或函数
short :声明短整型变量或函数
int : 声明整型变量或函数
long :声明长整型变量或函数
signed :声明有符号类型变量或函数
unsigned :声明无符号类型变量或函数
float :声明浮点型变量或函数
double :声明双精度变量或函数
struct :声明结构体变量或函数
enum :声明枚举类型
void :声明函数无返回值或无参数,声明无类型指针
控制语句关键字(12个)
- 循环控制(5个)
for:一种循环语句do:循环语句的循环体while:循环语句的循环条件break:跳出当前循环continue:结束当前循环,开始下一轮循环
- 条件语句(3个)
if: 条件语句else:条件语句否定分支goto:无条件跳转语句
- 开关语句 (3个)
switch:用于开关语句case:开关语句分支default:开关语句中的“其他”分支
- 返回语句(1个)
return:函数返回语句(可以带参数,也看不带参数)
存储类型关键字(5个)
auto:声明自动变量,一般不使用extern:声明变量是在其他文件中声明register:声明寄存器变量static:声明静态变量typedef:用以给数据类型取别名(但是该关键字被分到存储关键字分类中,虽然看起来没什么相关性)
其他关键字(3个)
const:声明只读变量sizeof:计算数据类型长度volatile:说明变量在程序执行中可被隐含地改变
边栏推荐
- Postman return value Chinese garbled????
- docker 部署redis
- 一个人竟然撸了一个微博 APP
- 《德阳市餐饮服务业油烟污染防治管理办法(征求意见稿)》之创新油烟监管
- 网站ssl证书
- Smart doc + Torna compatible version
- What are the good solutions for industrial control safety of production line
- 1004. number of maximum consecutive 1 III ●●
- Unity Text组件空格换行问题
- fatal: The upstream branch of your current branch does not match the name of your current branch.
猜你喜欢

ACM. HJ89 24点运算 ●●●

一款高仿腾讯漫画的漫画阅读类 APP

Recommend 4 flutter heavy open source projects

Three cool and coquettish bottom navigation

Facebook 开源微光效果 Shimmer

电子元器件行业B2B交易管理系统:提升数据化驱动能力,促进企业销售业绩增长

Goodbye, 2020, this bowl of poisonous chicken soup, I'll dry it first

Niuke.com: the double pointer problem of receiving rainwater

This high imitation millet mall project is amazing

数据库中索引原理及填充因子
随机推荐
APP性能优化之启动流程分析
Golang type assertion
Improvement of DC power distribution with open hall current sensor
Cross domain issues of the new version of Google browser
List<? Extensions T > and list <? Super T > difference
Unity text component space newline problem
smart-doc + Torna 兼容版本
Digital property management has become a trend. How can traditional property companies achieve digital butterfly change through transformation?
[things about gbase] gbase 8s high availability technology and case analysis (issue 02)
Under the background of aging, the comprehensive energy efficiency management platform escorts hospitals
CVPR2019/图像翻译:TransGaGa: Geometry-Aware Unsupervised Image-to-Image Translation几何感知的无监督图像到图像的翻译
MySQL导致索引失效的情况详解
Six complete open source projects, learning enough at a time
VS QT VTK 左下角显示同步小坐标轴
ACM. HJ89 24点运算 ●●●
2. camera calibration
多门店药品进销存系统源码 大型连锁药店管理系统源码
Restore IP address [standard backtracking + standard pruning]
Taylor formula and common expansion
mcu常用寄存器位操作方式汇总