The types used for size_t and ptrdiff_t should not have an integer conversion rank
greater than that of signed long int unless the implementation supports objects
large enough……
[/Quote]
呃有点错误,后一句应该是
你的32位程序咋知道在64位系统上跑,还能根据系统自适应改变 数据类型的大小?
The types used for size_t and ptrdiff_t should not have an integer conversion rank
greater than that of signed long int unless the implementation supports objects
large enough to make this necessar……
[/Quote]
64位系统上跑32位程序,就跟32位系统上跑32位程序一模一样
你的32位程序咋知道在64位系统上跑,还能根据系统自适应指针大小?
The types used for size_t and ptrdiff_t should not have an integer conversion rank
greater than that of signed long int unless the implementation supports objects
large enough to make this necessary.
以上是C99修正草案3标准文档的说明(文档代号n1256)。
以下是来自msdn的说法,
在 64 位 Windows 操作系统中,size_t、time_t 和 ptrdiff_t 是 64 位值。
引自:http://msdn.microsoft.com/zh-cn/library/3b2e7499(v=vs.90).aspx