Skip to content

Instantly share code, notes, and snippets.

@jasarien
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasarien/9365016 to your computer and use it in GitHub Desktop.
Save jasarien/9365016 to your computer and use it in GitHub Desktop.
#import <Foundation/Foundation.h>
int main(int argc, char *argv[]) {
@autoreleasepool {
NSInteger myNum = ({
1+1;
});
NSLog(@"%zd", myNum);
}
}
// output:
// 2
//
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment