c语言中bool数组的使用方法: 1.导入 首先要导入stdbool.h头文件: #include <stdbool.h> 2.声明 int N = 5; bool flag [N]; 3.初始化 虽然bool类型默认值是0,但是仍要初始化。