1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-08-10 00:41:37 +08:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Guide
cdbcbd3718
Merge pull request #2011 from caihj/patch-1
Update why-there-only-value-passing-in-java.md
2023-05-10 21:03:02 +08:00
caihj
557935770f
Update why-there-only-value-passing-in-java.md
bad c++ code here
incr(*age)  -->
incr(age);
2023-05-10 13:44:56 +08:00

View File

@ -177,7 +177,7 @@ int main()
{
int age = 10;
std::cout << "invoke before: " << age << "\n";
incr(*age);
incr(age);
std::cout << "invoke after: " << age << "\n";
}
```