Skip to content

Instantly share code, notes, and snippets.

@Thiago4532
Created July 20, 2021 17:15
Show Gist options
  • Save Thiago4532/56a9be7b534c6e934fc7b8c565a8436d to your computer and use it in GitHub Desktop.
Save Thiago4532/56a9be7b534c6e934fc7b8c565a8436d to your computer and use it in GitHub Desktop.
void modifica(int x) {
x = x + 3;
}
int main() {
int x = 5;
cout << x << '\n'; // 5
modifica(x);
cout << x << '\n'; // 5
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment