sizeof(int) on x64?

前端 未结 7 1629
眼角桃花
眼角桃花 2020-11-28 13:31

When I do sizeof(int) in my C#.NET project I get a return value of 4. I set the project type to x64, so why does it say 4 instead of 8? Is this because I\'m r

7条回答
  •  感情败类
    2020-11-28 13:55

    Remember int is just a compiler alias for the basic type Int32. Given that it should be obvious why int is only 32 bits on a 64 bit platform.

提交回复
热议问题