From: Endlisnis Newsgroups: comp.os.msdos.djgpp Subject: Re: 2 quick questions Date: Mon, 17 Aug 1998 14:39:07 -0300 Organization: NBTel Internet Lines: 24 Message-ID: <35D86ABB.B54ACD53@unb.ca> References: NNTP-Posting-Host: fctnts11c10.nbnet.nb.ca 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 Eli Zaretskii wrote: > On Fri, 14 Aug 1998, Bjorn Hansen wrote: > > > int i; > > int *ip; > > ip=(int *)i; > > You probably mean to say this: > *ip = i; Even that will end up writing to a [effectively] random location in memory. I would think he meant: ip = &i; -- (\/) Endlisnis (\/) s257m AT unb DOT ca Endlisnis AT GeoCities DOT com Endlis AT nbnet DOT nb DOT ca