Message-Id: <361E81CA.E224CF77@cableol.co.uk> Date: Fri, 09 Oct 1998 22:36:10 +0100 From: The Allens X-Mailer: Mozilla 4.04 [en] (Win95; I) Mime-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: Mem size References: <361E54BC DOT 62DA AT golden DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com DJGPP runs in 32 bit protected mode, so pointers are 32bits long. The book is written for a 16 bit compiler, so the addresses are much smaller. The pointers should go from 0 - 2147483647, although that would need 2gb of memory and virtual memory, so it is unlikely Peter Allen Gloria wrote: > > Hi. I'm a newbie to C. I'm learning with a book right now and it's > getting into pointers. In one program you find out the address of > various pointers. In the book it says that the memory location should > only be from 0-65,535 however when I try the program in DJGPP I get > memory addresses of 300000 and above. What's going on?