是* ptr ++相当于*(ptr ++) [英] is *ptr++ equivalent to *(ptr++)

查看:70
本文介绍了是* ptr ++相当于*(ptr ++)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

* ptr ++是否相当于*(ptr ++)?

Is *ptr++ equivalent to *(ptr++) ?

推荐答案

是的,你是对的。


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)++


这篇关于是* ptr ++相当于*(ptr ++)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆