Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
重複の可能性: sizeof(bool) が標準自体によって 1 に定義されていないのはなぜですか?
私はいくつかのシステムでテストsizeof(bool)しましたが、常に見つけました1( と同じsizeof(char))。sizeof(bool)が厳密に より高い、最も普及しているシステム/C++ コンパイラは1何ですか?
sizeof(bool)
1
sizeof(char)