fork(2) download
  1. #import <Foundation/Foundation.h>
  2.  
  3. int main() {
  4. NSAutoreleasePool *pool = [NSAutoreleasePool new];
  5. NSSet *affordableMakes = [NSSet setWithObjects:@"Ford", @"Honda",
  6. @"Nissan", @"Toyota", nil];
  7. NSSet *fancyMakes = [NSSet setWithObjects:@"Ferrari", @"Maserati",
  8. @"Porsche", nil];
  9. NSSet *allMakes = [affordableMakes setByAddingObjectsFromSet:fancyMakes];
  10. NSLog(@"%@", allMakes);
  11. [pool drain];
  12. return 0;
  13. }
Success #stdin #stdout #stderr 0.03s 42848KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
2016-05-02 11:47:24.478 prog[20660] (Nissan, Porsche, Maserati, Honda, Ferrari, Toyota, Ford)