Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 950
xpda Avatar asked Jan 27 '26 20:01

xpda


2 Answers

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

like image 169
Jeremiah Willcock Avatar answered Jan 29 '26 13:01

Jeremiah Willcock


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.

like image 29
Jerry Coffin Avatar answered Jan 29 '26 11:01

Jerry Coffin