Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C 6.0 - <b>signed signed integral data type</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 signed                  Signed Integral 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 MS-C, the size of a signed char object 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 MS-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. However, the
                default may be changed to unsigned using the /J compile-
                time switch.

                Bit fields in structures may not be of type signed.

                The signed keyword is a recent addition to the language
                and is not universally supported by compilers.

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

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




See Also: Type Modifiers char short int long unsigned

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