How long is a byte ?
How long is a byte?
Best answer
Answer: a byte is 8 bits long.
A bit (binary digit) is the smallest unit of data, a single 0 or 1. A group of 8 bits makes one byte, for example 01000001, which is the ASCII code of 'A'.
With 8 bits a byte can represent \(2^{8} = 256\) different values (0 to 255). A byte is the basic unit for measuring memory: 1 KB = 1024 bytes, 1 MB = 1024 KB, and so on. In C, a char takes exactly 1 byte.
Log in or create a free account to answer this question.