是什么在C * myptr ++和*(myptr ++)之间的差异 [英] What is the difference between *myptr++ and *(myptr++) in C

查看:96
本文介绍了是什么在C * myptr ++和*(myptr ++)之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用C

说我有一个指向名为* myptr

Say I have a pointer to a integer called *myptr

为int * myptr;

那么会是什么的区别是:

What would then be the difference between:

*myptr++

和...

*(myptr++)

谢谢

Thanks Dan

推荐答案

由于 ++ 具有较高的precedence比 * ,有没有区别

Since ++ has higher precedence than *, there is no difference between the two.

这篇关于是什么在C * myptr ++和*(myptr ++)之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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