1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-20 22:17:09 +08:00

Update why-there-only-value-passing-in-java.md

This commit is contained in:
kobe0824 2023-01-31 18:46:20 +08:00 committed by GitHub
parent 96a46f9b05
commit eeea5efc42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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