Skip to main content
4 events
when toggle format what by license comment
May 5, 2015 at 2:05 comment added Cliff B With two bytes, that gives you 15 bits of number and 1 sign bit. I believe that means the range is from -32768 to +32767. Glad I could help.
May 5, 2015 at 1:57 vote accept JaiPaw
May 5, 2015 at 1:57 comment added JaiPaw God bless you sir! I've been cracking my head over this for 3 days. I realized something was wrong when with a key of 'z', it works up to f, then it returns the question mark. After reading this, all I did was modify " char temp " into " int temp ", and it passed check50. Is it because an int is 2 bytes compared to a char which is 1 byte? Then if the number is larger that 256, will it face the same problem?
May 4, 2015 at 18:13 history answered Cliff B CC BY-SA 3.0