Subj : Re: Question To : comp.programming From : DarkD Date : Sun Oct 02 2005 12:22 pm "Bill Cunningham" wrote in message news:VGD_e.10558$kH3.986@trnddc01... > > > For a meaningful answer you'll need to say what hardware you're using, > > what OS and what you expect to find at 0x00c0. On a Commodore 64 using > > the standard BASIC and KERNEL ROMs for example, that would be CAS1, the > > tape motor interlock. > > > > Dave. > > Win98 and xp. And linux OSs. 0x0c is what I'm looking for for the > beginning of the partition table. Somewhere in there is the part signature > for the partition and the mbr and filesystem signature. C being the > signature for win95 LBA and 6 being FAT16. Why in the code above did you > make x a pointer to an int and not declare x as an int? Do you not want x to > be assigned any value? Im not sure you fully understand a pointer. He is pointing to that memory location and displaying the integer value from that location. If you did this: int x; x = *&0x00c0; printf("Value at address 0x00c0 is %d\n",x); You would be copying the integer value at the location into x, and then displaying x. In his instance x is a pointer and is assigned the the address 0x00c0, in my instance x is an integer and is assigned the value at the address 0x00c0. .