【发布时间】:2012-07-08 00:07:04
【问题描述】:
#include<stdio.h>
int main()
{
int c;
return 0;
} // on Intel architecture
#include <stdio.h>
int main()
{
int c;
return 0;
}// on AMD architecture
/* 在这里,我在两台不同的机器上有一个代码,我想知道“数据类型的大小是否取决于机器” */
【问题讨论】:
-
不同机器的尺寸肯定会有所不同。例如
long在 Windows 上是 32 位,在 Linux 上是 64 位。 -
Intel 和 AMD 不是架构。他们是供应商。 x86 是一种架构。
-
@DietrichEpp:嗯,是的,他们不是......有时会错过单词
标签: c architecture types integer size