Skip to content

Instantly share code, notes, and snippets.

@boboboa32
Created October 11, 2012 14:21
Show Gist options
  • Save boboboa32/3872682 to your computer and use it in GitHub Desktop.
Save boboboa32/3872682 to your computer and use it in GitHub Desktop.
int multiplier = 7;
int (^myBlock)(int) = ^(int num) {
return num * multiplier;
};
printf("%d", myBlock(3)); // prints "21"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment