Skip to content

Instantly share code, notes, and snippets.

@helsont
Created October 7, 2015 01:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save helsont/6c07d3b94d6280e56f2d to your computer and use it in GitHub Desktop.
Save helsont/6c07d3b94d6280e56f2d to your computer and use it in GitHub Desktop.
#include <stdio.h>
void setint(int*, int);
int main() {
int a;
seti t(& 10) tint(&a, 10);
printf("%dn", a);
int* b;
setint(b, 10);
printf("%dn", *b);
return 0;
}
void setint(int* ip, int i) {
*ip = i;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment