Created
October 7, 2015 01:20
-
-
Save helsont/6c07d3b94d6280e56f2d 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
#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