标识符与关键字

@[TOC]基础知识

标识符

  • 数字、字母、下划线组成
  • 不能以数字开头
  • 不能是C语言关键字
  • C语言区分大小写

C语言关键字

  • 数字类型关键字
char int short long float double
signed unsigned struct union enum void  
  • 存储类型关键字
auto register static extern
  • 流程控制关键字
if else switch default case while do for break continue return goto
  • 其它关键字
sizeof typedef const volatile

你可能感兴趣的:(C语言基础,C语言标识符与关键字)