Skip to content

Instantly share code, notes, and snippets.

@dafyddcrosby
Last active December 20, 2015 09:49
Show Gist options
  • Save dafyddcrosby/6110371 to your computer and use it in GitHub Desktop.
Save dafyddcrosby/6110371 to your computer and use it in GitHub Desktop.
#include <stdio.h>
void square(int *num) {
*num *= *num;
}
int main() {
int x = 4;
square(&x);
printf("%d\n", x);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment