auto和bool

一、auto'

1.只要在函数内部定义变量,默认是auto

int num 等价于  auto int num = 10; 

2.C语言中的auto关键字就是自动分配自动释放

二、bool类型

1.头文件stdbool.h

_Bool  b = true;  

_Bool  b1 = 10;  表示true,非0是1,0是0;  

printf("%d",sizeof(b));  1个字节

原文地址:https://www.cnblogs.com/sjxbg/p/5539268.html