Friday, 3 January 2020

History of Types in C/C++

16-bit Machines (Max 32-bit):
Note: short and int are the same, float is 16-bit
  • char        8-bit
  • short       16-bit
  • int         16-bit
  • long        32-bit (Max)
  • long long   No such type
  • float       16-bit
  • double      32-bit (Max)
  • long double No such type
32-bit Machines (Max 64-bit):
Note: int and long are the same, float is 32-bit
  • char        8-bit
  • short       16-bit
  • int         32-bit
  • long        32-bit
  • long long   64-bit (Max)
  • float       32-bit
  • double      64-bit (Max)
  • long double No such type
64-bit Machines (Max 128 bit):
Note: int is 32-bit, long is 64-bit, long double is added
  • char        8-bit
  • short       16-bit
  • int         32-bit
  • long        64-bit
  • long long   128-bit (Max)
  • float       32-bit
  • double      64-bit
  • long double 128-bit (Max)

No comments:

Post a Comment