Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>signed signed integer data type</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 signed                  Signed Integer Data Type

    The keyword signed may be applied to the char, short int, int, and
    long int types.  The size (and representation) of a signed type is
    implementation-defined.

      Notes:    In Turbo C++, the size of a signed char is one byte
                and its value ranges from -128 to 127.  Signed short int
                and signed int objects are two bytes and range in value
                from -32768 to 32767.  Signed longs are four bytes, and
                their values range from -2147483648 to 2147483647.  Since
                all the "plain" integer types in Turbo C++ are signed by
                default, the signed keyword is superfluous.

                If signed is used without the keyword int, the int is
                assumed.

                By default, "plain" chars are signed.

                In Turbo C++, a structure bit field may be either signed
                or unsigned. A signed int bitfield one bit wide can hold
                only the values 0 and -1.

   -------------------------------- Example ---------------------------------

           signed char letter;
           signed short int value;
           signed short amount;
           signed int total;
           signed count;




See Also: Type Modifiers char short int unsigned

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson