Why boolean data type is 1 Byte in RustLang?

前端 未结 0 1619
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-08 03:31

I don\'t understand the reason why Rust uses 1 Byte of memory(from reference book) but java uses 1 bit for Booleans.

Even, in theory, I don\'t understand why is 1 Byt

相关标签:
回答
  • 消灭零回复
提交回复
热议问题