From: Vic Newsgroups: comp.os.msdos.djgpp Subject: Re: Please help the newbie! Date: Thu, 25 Sep 1997 16:18:34 -0400 Organization: Communications Accessibles Montreal, Quebec Canada Lines: 19 Message-ID: <342AC71A.BB9@cam.org> References: <875153762 DOT 25454 AT dejanews DOT com> <60cpl7$2pk AT sjx-ixn3 DOT ix DOT netcom DOT com> <875206466 DOT 2246 AT dejanews DOT com> NNTP-Posting-Host: dynamicppp-244.hip.cam.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk joe DOT charles AT mail DOT sprintranet DOT com wrote: > What I was expecting to see was something like "0x8fc9:fff2" for >example. What you see is something like "Adress: 0x5ef14" or at least you should. in 0x8fc9:fff2 the first part is the segment and the second the offset, right? DJGPP is protected mode 32 bit, that form of addressing is 16 bit real mode. in DJGPP you have a flat memory, no more segments. this works fine for me #include void main(void) { int temp=9; cout <<"\n Adress: " <<&temp; } (And please, PLEASE, the others, don't tell me "you should use int main cause the standard says so"! thanx) -- --> http://www.cam.org/~tudor <-- Go ahead and build another Messiah We dig another grave...