Different between byte And bits? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Different between byte And bits?

17th Apr 2017, 5:28 PM
Akshaykumar Vidhate
3 Answers
+ 8
A byte is the smallest addressable unit of memory, and is composed of 8 bits. A bit can only take on two values-- 0, or 1, whereas an unsigned byte can span from 0 (0000 0000) to 255 (1111 1111). This is the greatest range you can represent with 8 bits. Edit: @Krishna While we're on the topic of larger units of memory, a kilobyte is actually 1000 bytes, a megabyte is 1000 kilobytes, and so on. You're probably thinking of kibibytes and mebibytes, which are 1024 bytes and 1024 kilobytes respectively.
18th Apr 2017, 12:34 AM
Squidy
Squidy - avatar
+ 5
Bit - Either 0 or 1 Byte - 8 bits Kilo Byte - 1024 bytes Mega Byte - 1024 kilo bytes Giga Byte - 1024 mega bytes
18th Apr 2017, 12:26 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 1
Thank you Squidy
17th Apr 2017, 5:36 PM
Akshaykumar Vidhate