更新时间:2022-03-18 04:34:28
是的,你是对的。
>
ju ********** @ yahoo.co.in 写道:
ju**********@yahoo.co.in wrote:
* ptr ++相当于*(ptr ++)?
Is *ptr++ equivalent to *(ptr++) ?
是。在每种情况下,关联性是从右到左,并且在每种情况下,*所见的
值是ptr的旧值,而不是它的新值
当++完成其工作时。
-
理查德希思菲尔德
Usenet是一个奇怪的放置" - dmr 29/7/1999
http://www.cpax.org.uk
邮件:rjh在上面的域名
Yes. In each case, the associativity is right-to-left and, in each case, the
value seen by * is the old value of ptr, not the new value that it will
have when ++ has completed its work.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
mail: rjh at above domain
ju ********** @ yahoo.co.in 写道:
是* ptr ++相当于*(ptr ++)?
Is *ptr++ equivalent to *(ptr++) ?
是的,这是正确的....
再一次
++ * ptr ==(* ptr)++
yes it is correct....
one more
++*ptr == (*ptr)++