#import <Foundation/Foundation.h>
typedef void (^SayHello)();
int (^max)(int a,int b);
typedef void (^SayHello)();
int main(int argc, const char * argv[]) {
@autoreleasepool {
SayHello sh=^(){
printf(" programing is very fun ……\n");
};
sh();
max =^(int a ,int b){
return a>b?a:b;
};
NSLog(@"\n the max is :%d\n",max(7,1));
}
return 0;
}