sizeof(long) in 64-bit C++

前端 未结 6 1382
清歌不尽
清歌不尽 2020-12-05 18:21

I have downloaded MinGW-64, so I can now compile 64-bit programs for Windows 7, using g++ 4.7.0 (experimental). But the following line:

cout << sizeof(         


        
6条回答
  •  萌比男神i
    2020-12-05 18:38

    Most of Windows applications are written with the expectation that for all intents and purposes int=long=32 bits. I'm guessing MinGW is just making sure it's still the case and there're no surprises.

提交回复
热议问题