Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualGeometrian

Posted 07 February 2013 - 07:01 PM

If you include the standard header , C++ defines alot of integer types that are more specific:
int8_t = -127 to +127

Actually int8_t is =-128 to 127

As has been mentioned, on two's complement architectures, yes. 1's complement architectures do exist (although more "did"), having the advantage of slightly simpler circuitry. For practical purposes, nowadays, on commodity hardware, one generally assumes two's complement.


#1Geometrian

Posted 07 February 2013 - 07:01 PM


If you include the standard header , C++ defines alot of integer types that are more specific:
int8_t = -127 to +127

 
Actually int8_t is =-128 to 127


As has been mentioned, on two's complement architectures, yes. 1's complement architectures do exist (although more "did"), having the advantage of slightly simpler circuitry. For practical purposes, nowadays, on commodity hardware, one generally assumes two's complement.

PARTNERS