Skip to content

Instantly share code, notes, and snippets.

@LucianoPAlmeida
Created March 14, 2021 15:59
Show Gist options
  • Save LucianoPAlmeida/f1a880d77d520c276ca71856f728748c to your computer and use it in GitHub Desktop.
Save LucianoPAlmeida/f1a880d77d520c276ca71856f728748c to your computer and use it in GitHub Desktop.
int addScalar(int *x, int n, int s) {
for (int i = 0; i < n; ++i)
x[i] += s;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment