码迷,mamicode.com
首页 > 编程语言 > 详细

C语言关键字分类整理

时间:2018-05-12 02:45:21      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:complex   text   static   turn   style   reg   ati   存储   generic   

C语言总览:

  • 强类型,面向过程
  • 简洁、灵活:32个关键字(C99标准新增5个,C11新增7个),9种控制语句,34种运算符
  • 数据类型丰富,运算符丰富
  • 结构化(控制语句)、模块化(函数)
  • 灵魂、特色:指针

 

数据类型(type)13个: void  signed unsigned short long int  float double  char  enum  struct union  typedef  (_Bool _Imaginary _Complex)

类型限定、修饰(type specifier/qualifiers)2个: const volatile (restrict  inline)

变量的存储类别(storage class)4个: auto  static  extern  register

运算符(operator)1个:  sizeof 

控制(control)12个: goto  return  break continue  if else  switch case default  do while  for


 

数据类型(type):

  • void  
  • signed unsigned short long int  
  • float double  
  • char  
  • enum  
  • struct union  
  • typedef  
  • (_Bool _Imaginary _Complex)

类型限定、修饰(type specifier/qualifiers):

  • const 
  • volatile 
  • (restrict  inline)

变量的存储类别(storage class):

  • auto  
  • static  
  • extern  
  • register

运算符(operator):

  • sizeof 

控制(control):

  • goto  
  • return  
  • break continue  
  • if else  
  • switch case default  
  • do while  
  • for

C99标准新增5:restrict  inline  _Bool  _Imaginary  _Complex

C11标准新增7:_Alignas  _Alignof  _Atomic  _Static_assert  _Noreturn  _Thread_local  _Generic

共32+5+7=44个关键字

C语言关键字分类整理

标签:complex   text   static   turn   style   reg   ati   存储   generic   

原文地址:https://www.cnblogs.com/madbean/p/9027126.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!