我在学习c,用turbo c 2。可是以下程序怎么老是出现意外结果?其中double array的地址居然保持不变?请教了。
#include
int i[10],x;
float f[10];
double d[10];
main()
{
printf("\t\tInteger\t\tFloat\t\tDouble");
printf("\n=================================================");
for (x=0;x
printf("\nElement %d:\t%ld\t\t%ld\t\t%ld",x,&i[x],&f[x],&d[x]);
printf("\n=================================================");
return 0;
}
请教C高手
所有跟帖:
•
tc 2.0 太老了,好好看看printf格式命令
-tty-
♀
(26 bytes)
()
06/22/2004 postreply
01:59:32
•
gcc on linux编译的执行文件能在dos下用吗?
-gcc-
♀
(0 bytes)
()
06/22/2004 postreply
13:06:36