In MSVC 6, is an int 16 or 32 bits?

868 Views Asked by At

In MSVC 6, Windows, is an int 16 or 32 bits?

3

There are 3 best solutions below

2
On BEST ANSWER

Its 4 bytes . sizeof(int)) gives you the answer . Try it

1
On

I believe it is 32, but you can check using printf("%d\n", sizeof(int)); and multiplying the answer by 8.

0
On

Just to confirm, yes, it's 4 bytes. The last 16-bit version of VC++ was 1.52c. The next version after that was VC++ 2.0, which was available only in a 32-bit version.