Int size ranges and need

  1. profile image47
    muniiposted 7 years ago

    Int size ranges and need

  2. Riteek Arora profile image60
    Riteek Aroraposted 6 years ago

    SIZE
    The size of an integer depends on the the Operating System.
    The C Compiler allocates 2 bytes (16 bits) to an integer in Windows, whereas the same C Compiler allocates 4 bytes (32 bits) to an integer in Linux.

    -------
    RANGE
    (-)32768 to (+)32767

    -------
    NEED
    Integer variables are used to store numeric(non-float) values.

    -------
    DECLARATION
    int [identifier name];
    or
    int [identifier name] = [value];

 
working