/* this program detects the installation of LPT1 and reports the I/O port address assigned to it. */ #include #include main() { unsigned int far *xptr; /* a far pointer */ xptr=(unsigned int far *) 0x00000408; /* assign address */ if(*xptr >0) printf("I/O base address assigned to LPT1 is %X \n",*xptr); else printf("LPT1 = None found"); }