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

861 views Asked by At

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

3

There are 3 answers

2
Verve Innovation On BEST ANSWER

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

1
Jeremiah Willcock On

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

0
Jerry Coffin 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.