| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
int a = 9; // a = 9 int b = a++; // b = 9,a = 10 int c = ++a; // a = 11,c = 11 int d = c--; // d = 11,c = 10 int e = --d; // d = 10,e = 10
|
recommend change title to "fix: correct the wrong result in java-basic-questions-01.md" |
Sorry, something went wrong.
|
感谢修正!验算无误:c = ++a 时 a 已为 10,前置自增后 a、c 均为 11,原文答案确实写错了。已合并 🎉 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
int a = 9; // a = 9
int b = a++; // b = 9,a = 10
int c = ++a; // a = 11,c = 11
int d = c--; // d = 11,c = 10
int e = --d; // d = 10,e = 10