Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Data Types - Visual Basic 6 and C++
#3
Dave Wrote:Now here's a question for you.

Why use a boolean variable, when they take two bytes, and you only need one bit to effectively store a true/false condition?

Use a Byte instead. If you're good, you can use all 8 bits in the byte to store 8 seperate booleans. Woot

Convenience, sometimes you don't need to worry about the memory.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)