Alex Rivera | Logout

Does the size of an int depend on the compiler and/or processor?

Asked 2010-02-25T04:59:45.050
86

Would the size of an integer depend upon the compiler, OS and processor?

Edit
Report

1 Answer

-6

Yes , I found that size of int in turbo C was 2 bytes where as in MSVC compiler it was 4 bytes.

Basically the size of int is the size of the processor registers.

answered 2010-02-25T05:03:51.727

Your Answer