bool 是原生 C 類型嗎? - Is bool a native C type?

問題:

I've noticed that the Linux kernel code uses bool, but I thought that bool was a C++ type.我注意到 Linux 內核代碼使用 bool,但我認爲 bool 是 C++ 類型。 Is bool a standard C extension (eg, ISO C90) or a GCC extension? bool 是標準 C 擴展(例如 ISO C90)還是 GCC 擴展?


解決方案:

參考一: https://stackoom.com/question/6kOc
參考二: Is bool a native C type?
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章