请问* P ++增量提领后? [英] Does *p++ increment after dereferencing?

查看:106
本文介绍了请问* P ++增量提领后?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的不知道这里是什么顺序。是吗:
1)取消引用指针p的值增加后,其
2)取消引用指针p增加前值它

I'm not really sure what the order here is. Is it: 1) Dereference the value of pointer p after increasing it 2) Dereference the value of pointer p before increasing it

推荐答案

有是增量和提领之间没有顺序。但是, * 操作符适用于点++ ,这是的初始值的结果p 之前的增量。

There is no ordering between the increment and the dereference. However, the * operator applies to the result of p++, which is the original value of p prior to the increment.

这篇关于请问* P ++增量提领后?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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