菜鸟的问题 ~~
okfyf 2009-06-05 09:31:26
#include"stdio.h"
int_is_little_endian(void)
{
int x=1; /* 抄的深入理解计算机系统习题答案*/
return (int)(*(char *)&x);
}
int main()
{
int i;
printf("\n");
int i=int_is_little_endian();
printf("%d \n"i);
}
cygwin gcc 编译
error: redeclaration of 'i' with no linkage
error: previous declatation of 'i' was here
error: parse error before "i"
输出一下都输出不了.... 真是.....
哪位高人给看下 指导一下..