剛開始寫C++就遇到了此問題,可能對很多人來說是簡單到不行的問題,但實際使用才發現自己對兩者差異不是很熟
許多大神的解釋過於艱深,我實在難以理解(我的問題)
然而,其實用一個例子就能懂,什麼是
X++ is post increment and ++x is pre increment.
舉例:
For ++x
Output: 6,6
For x++
Output: 5,6
For further actions, you may consider blocking this person and/or reporting abuse
Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.
Andrew Baisden -
Ash Inno -
Hadil Ben Abdallah -
Udemezue John -
Top comments (0)