Created
February 5, 2023 13:59
-
-
Save LucianoPAlmeida/08c6a0966883066cb3ed1ae1468b4153 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void sumBy(int *p, const int value) { | |
for(int i = 0; i < 10; ++i) { | |
p[i] += value; | |
} | |
} | |
void sumByRef(int *p, const int &value) { | |
for(int i = 0; i < 10; ++i) { | |
p[i] += value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment