Skip to content

Instantly share code, notes, and snippets.

@Arbow
Created August 21, 2008 10:08
Show Gist options
  • Save Arbow/6537 to your computer and use it in GitHub Desktop.
Save Arbow/6537 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int add(int i, int j, void (*continuation)(int)) {
int k = i + j;
continuation(k);
}
void print(int i) {
printf("%d\n", i);
}
int main() {
add(3, 5, print);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment