Byte: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Le Glaconus (talk | contribs) No edit summary |
||
(26 intermediate revisions by 17 users not shown) | |||
Line 1: | Line 1: | ||
{{Source topicon}} | |||
{{LanguageBar}} | |||
A {{wiki|byte}} is eight {{wiki|bits}}, the size of one [[char]]. A kilobyte (KB) is 1024 bytes, while a megabyte (MB) is 1024 kilobytes, a gigabyte (GB) is 1024 megabytes, etc. | |||
A byte is the minimum amount of memory allocatable. Even a [[bool]] is one byte (thus the benefits of [[BitVec]]{{clarify}}). | |||
* In {{goldsrc|4}} and {{src|4}}, {{code|byte}} is a typedef for {{code|unsigned char}}, making its range 0-255. | |||
[[Category:Variables]] | |||
[[Category:Source]] |