一、布尔型的使用
使用方法:
- typedef int bool;
- typedef char bool;
- typedef enum {false, true} bool;
#include <stdio.h>
typedef enum {false, true} bool;
bool returnTest()
{
return true;
}
int main(void) {
printf(">>>>%d\r\n", returnTest());
return 0;
}