That's some good notes from the Golang session. Just a suggestion, it would be great if you start the post with relevant context so that anyone who lacks context could easily understand ehat this post is about 🙂
Two things I observed:
1 byte = 8 bit ( high bit will be allocated to --> signature , 2 power 7 = 0 to 127 --> it accepts , range = -127 to +127 ) Eg., var i int8
The range is -128 to +127 as you mention elsewhere in the post.
uint --> Reservation will be ignored. So 0 to 128 , also negative value will not be assigned. --> unsigned Integer
Since the reservation is ignored, the range of uint8 goes from 0 to (2^8 - 1) i.e., 0 to 255
That's some good notes from the Golang session. Just a suggestion, it would be great if you start the post with relevant context so that anyone who lacks context could easily understand ehat this post is about 🙂
Two things I observed:
The range is -128 to +127 as you mention elsewhere in the post.
Since the reservation is ignored, the range of uint8 goes from 0 to (2^8 - 1) i.e., 0 to 255
Sure , will take it up in upcoming posts .