VC6.0与tubro c运行结果不同?
//#include <windows.h>#include <stdio.h>
#include <conio.h>
int main()
{
short *ptr; //20位指针
ptr=(short *)0x00400000; //(0040:0000) BIOS中串口通信的端口地址
printf("COM1:%04X\n",*ptr);
printf("COM2:%04X\n",*(ptr+1));
printf("COM3:%04X\n",*(ptr+2));
printf("COM4:%04X\n",*(ptr+3));
return 0;
}