Skip to content

Instantly share code, notes, and snippets.

@housemeow
Created April 11, 2014 09:00
Show Gist options
  • Save housemeow/10451683 to your computer and use it in GitHub Desktop.
Save housemeow/10451683 to your computer and use it in GitHub Desktop.
void f(int a, int *b, int **c, int *d, int e){
a = *b+(**c); b=&a; (**c)+=e++;
*b = a+(*(d+1));
e=*b+(**c)+*d;
printf("%d %d\n", e, *b);
}
int main(){
int i=1,j=2;
int k[] = {3,2,1,0};
int *s=k, *p=s+1, *q=k+2;
f(++i), &j, &s, p, *q);
printf("%d %d %d\n", j, k[0], k[2]);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment