But why byte? Is that becaouse it uses less memory? If not why?
Yes, why consume a 16 bit int to hold a 6 bit number? And it's a good habit to make you think about the size needed for a variable instead of blindly using int for small numbers.
But why byte? Is that becaouse it uses less memory? If not why?
Yes, why consume a 16 bit int to hold a 6 bit number? And it's a good habit to make you think about the size needed for a variable instead of blindly using int for small numbers.