会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
精彩极了
There is only one heroism in the world: to see the world as it is and to love it.
博客园
首页
新随笔
联系
管理
2020年4月19日
i++ 和 ++i 区别
摘要: i++和++i区别 两者简单输出【结果有所差异,有所相同】: ++i是先改变i的值即加1后再使用i的值;而i++是先使用i的值在改变它的值即加。 示例代码1【结果差异】: int a=6; int b=6; System.out.println(a++); System.out.println(++
阅读全文
posted @ 2020-04-19 23:00 Cool_Yang
阅读(1364)
评论(0)
推荐(0)