<Tr> <Td> Unsigned: From 0 to 340,282,366,920,938,463,463,374,607,431,768,211,455, which equals 2 − 1 </Td> <Td> 39 </Td> </Tr> <Tr> <Td> n </Td> <Td> n - bit integer (general case) </Td> <Td> Signed: (− (2)) to (2 − 1) </Td> <Td_colspan="2"> ⌈ (n − 1) log 2 ⌉ </Td> <Td_colspan="5"> Ada: range - 2 * * (n - 1)... 2 * * (n - 1) - 1 </Td> </Tr> <Tr> <Td> Unsigned: 0 to (2 − 1) </Td> <Td_colspan="2"> ⌈ n log 2 ⌉ </Td> <Td_colspan="5"> Ada: range 0...2 * * n - 1, mod 2 * * n; standard libraries' or third - party arbitrary arithmetic libraries' BigDecimal or Decimal classes in many languages such as Python, C++, etc . </Td> </Tr> <Ol> <Li> ^ Not all SQL dialects have unsigned datatypes . </Li> <Li> The sizes of char, short, int, long and long long in C / C++ are dependent upon the implementation of the language . </Li> <Li> The sizes of Delphi's Integer and Cardinal are not guaranteed, varying from platform to platform; usually defined as LongInt and LongWord respectively . </Li> <Li> ^ Java does not directly support arithmetic on char types . The results must be cast back into char from an int . </Li> </Ol>

Range of signed int and unsigned int in c