Skip to content

Instantly share code, notes, and snippets.

@llllllllll
Created September 14, 2015 00:36
Show Gist options
  • Save llllllllll/88361f981d495e169ada to your computer and use it in GitHub Desktop.
Save llllllllll/88361f981d495e169ada to your computer and use it in GitHub Desktop.
#include <stdio.h>
typedef int (*t)(int);
t f(int a) {
int g(int b) {
return a + b;
}
return g;
}
int main(void){
printf("%d\n", f(1)(1));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment