Regarding limits.h in C

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pradeepp
    New Member
    • Jul 2007
    • 3

    Regarding limits.h in C

    Hi All,
    According to the C standard the size of int may vary depending on the machine type. I checked in limits.h file in Cygwin, the value of int is fixed to 4 bytes i.e UINT then how this value will become 2 bytes in other system as in limits.h this value is fixed.?

    can any one explain me...

    Regards
    -Pradeepp
  • oler1s
    Recognized Expert Contributor
    • Aug 2007
    • 671

    #2
    It might be 2 on other computers... That limits.h value can be different you know.

    Comment

    Working...