Byte: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{ | {{Source topicon}} | ||
{{Lang|Byte}} | |||
A [[Wikipedia:Byte|byte]] is eight [[Wikipedia:Bit|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 [[Wikipedia:Byte|byte]] is eight [[Wikipedia:Bit|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. | ||
Revision as of 23:13, 7 April 2023
A byte is eight 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).
- In Source,[Clarify]
byte
is a typedef forunsigned char
.