Basic data types ( char, int, float..etc) and qualifiers ( short, long..etc)

Home Forums C-programming.. Basic data types ( char, int, float..etc) and qualifiers ( short, long..etc)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2592 Reply
    Humble
    Keymaster

    As you know the basic data types in C are :

    char
    int
    float
    double

    Obviously there are qualifiers which can be put together with above data types: The examples are

    signed
    unsigned
    short
    long

    Unsigned and signed are qualifiers which can be with char or any integer.

    How-ever short and long applies to int ..

    The sizes allocated for these data types along with the type qualifiers are compiler and machine dependent. how-ever :

    short and int should be atleast 16 bits: or 2 bytes
    long are atleast 32 bits or 4 bytes

    and also

    short <= int <= long

    #2594 Reply
    Humble
    Keymaster
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Basic data types ( char, int, float..etc) and qualifiers ( short, long..etc)
Your information: