it can also be understood as, range of signed integers are 
-2^(no. of bits-1) to 2^(no. of bits-1)-1

so here is only one bit so its range will be from -1 to 0.
that's why storing 1 means -1.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/algogeeks/-/Xwqu8zxk3RkJ.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to