//常见关键字
// auto  break  case  char  const  continue  default  do  else  double  enum  extern  float  for  goto  if  
//int  long  register  return  short  signed  sizeof  static  struct  switch  typedef  union  unsigned  void  volatile while
//auto
//int main() {
//    int a = 10;
//    //自动变量  auto int  a = 10;
//    
//}
//switch case  default
//for  while  do while   break goto; continue 循环
// char int short long double float 类型
//const 修饰变量表示常属性
//if  else 
//enum枚举 struct结构体 union联合体
//extern声明外部符号
//redister 寄存器
//return 函数返回值
//signed 有符号的
//static静态的
//typedef
//void 空函数的返回类型 函数参数
//变量的命名
//1.有意义
//2.名字必须是字母数字下划线不能有特殊字符 不能以数字开头
//3.变量名不能是关键字

Logo

开源鸿蒙跨平台开发社区汇聚开发者与厂商,共建“一次开发,多端部署”的开源生态,致力于降低跨端开发门槛,推动万物智联创新。

更多推荐