Basic Data Types

  • + 3 comments

    can someone tell me if i made a mistake. i also apologise for it being a bit messy, but i couldn't put this into a table. to try make things easier to read, i bolded each colmn.

    Type Size (bytes) Range-Minimum Range- Maximum

    Character 1 -128 127 Unsigned Char 1 0 255 Signed Char 1 -128 127 Integer 4 -2,147,483,648 2,147,483,647 Signed Int 4 0 4,294,967,295 Unsigned Int 4 -2,147,483,648 2,147,483,647 Short Int 2 -32,768 32,767 Signed short Int 2 0 65,535 Unsigned Short Int 2 -32,768 32,767 Long Int 4 -2,147,483,648 2,147,483,647 Signed Long Int 8 0 4,294,967,295 Unsigned Long Int 8 -2,147,483,648 2,147,483,647 Float 4 1.8E-38 3.4E+38 Double 8 2.2E-308 1.8E+308 Long Double 8 2.2E-308 1.8E+308 Bool 1 True/False True/False Wchar_t 2 or 4 0 65,535 http://www.besanttechnologies.com/training-courses/php-training/php-training-institute-in-chennai | http://www.trainingintambaram.in/php-training-in-chennai.html