> For the complete documentation index, see [llms.txt](https://information9527.gitbook.io/cbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://information9527.gitbook.io/cbook/2.-zi-liao-xing-tai-xuan-gao/24-qi-ta-zi-liao-xing-tai.md).

# 其他資料型態

## 布林 bool

布林只有 true/false (真/假) 這兩種常數資料型態。&#x20;

## 練習

下方程式，測試 bool  0 / 1 是怎樣判別 true 與 false

```c
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>

int main(int argc, char const *argv[])
{
    bool ToF;
    printf("Pls Numble= >");
    scanf("%d",&ToF);
    printf("%s\n",ToF ? "true" : "false");
    
    system("PAUSE");
    return 0;
}

```
