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>int integer data type</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 int                     Integer Data Type

    The int type declares an object to be of "plain" integral type.  The
    size (and representation) of an int object is implementation-defined.
    An int is the same or greater in size than a short int, and the same
    or less than the size of a long int.  (Note that in some
    implementations, short int, int, and long int could all have the same
    size.)  Whether a "plain" int is signed or unsigned is
    implementation-defined.

      Notes:    In Turbo C++, the size of an int object is two bytes,
                and "plain" ints are signed.  That is, int is equivalent
                to signed int and its range of values is -32768 to 32767,
                inclusive.

                One of the keywords signed and unsigned may be used as a
                prefix to int to identify the integer as being signed or
                unsigned, respectively.

                Character constants of the form 'x' have int type.

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

           int value = 6;
           int action_code = 'A';
           int bit_pattern = '\xAB';
           int counters[6];
           int *pointer_to_int;
           int function();

           value = (int) 123.45;




See Also: Types short long signed unsigned

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