www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/18/12:00:23

From: elvenforst AT aol DOT com (ElvenForst)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Question about pointer
Lines: 16
NNTP-Posting-Host: ladder01.news.aol.com
Date: 18 Sep 1998 15:46:16 GMT
Organization: AOL http://www.aol.com
References: <360224e3 DOT 23441421 AT news DOT hknet DOT com>
Message-ID: <19980918114616.17387.00000610@ng-cr1.aol.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>	int *b = &a      
>This line is same as
>	int *b
>	b = &a

Yes.

>This line	*a++ = *b++
>same as	a++; b++;
>	*a = *b

Also true.  This is because the ++ operator has higher precedence than the
unary * operator, and the = operator's precedence is still lower.

--Richard Ellwood

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019