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;

Seealso:



This page last updated on Fri Nov 30 10:48:32 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster