understanding how union works
Posted on 2004-04-23
Ok here is a sample code that i dont understand. I use turboc compiler.
unsigned long BaseAddress1=0xC8000L; //Default Base Address, transmitter
unsigned long BaseAddress2=0xC8100L; //Default Base Address, receiverunsigned char far* NormAddress1; //Base address in form SEGM:ADDR
unsigned char far* NormAddress2; //Base address in form SEGM:ADDR
unsigned char far* NormAddress1; //Base address in form SEGM:ADDR
unsigned char far* Addr;
unsigned long Numb;
unsigned char far* GetAddress ( unsigned long Ad)
int main (int argc, const char *argv)
I dont know how to display the unsigned char far* and unsigned long. Also dont understand how unions work. Tried looking online tutorial but got confused. So what does the function GetAddress return?? thanks in advance.