Date: Wed, 24 Sep 1997 21:22:04 -0600 From: joe DOT charles AT sprintranet DOT com Subject: Please help the newbie! Newsgroups: comp.os.msdos.djgpp Message-ID: <875153762.25454@dejanews.com> Organization: Deja News Posting Service Lines: 21 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I'm teaching myself C++ on a Toshiba Tecra running Win95. I've been using DJGPP v2 and RHIDE with no problems until now... Day 8 of "Teach Yourself C++ in 21 Days." Day 8 discusses pointers, and says you can use the "&" operator to see the particular address of any given variable, as in: int temp=5; cout << "Address: " << &temp Now, when I compile this and run it, I get "Address: 1" instead of the actual memory address of the temp variable. Does DJGPP not support the & operator? How can I see the address of a given variable? Thanks, Joe -------------------==== Posted via Deja News ====----------------------- http://www.dejanews.com/ Search, Read, Post to Usenet