sizeof(long)

16位系统:long是4字节,int是2字节
32位系统:long是4字节,int是4字节
64位系统:long是8字节,int是4字节

原文地址:https://www.cnblogs.com/ztteng/p/3422793.html