fork(1) download
  1. #import <Foundation/Foundation.h>
  2.  
  3. int main(int argc, const char * argv[]) {
  4.  
  5. NSAutoreleasePool *pool = [NSAutoreleasePool new];
  6. NSArray *arr = [NSArray arrayWithObjects: @"Colombia", @"1", @"Lenguajes", nil];
  7. int i, size = [arr count];
  8.  
  9. for(i = 0; i < size; i++) {
  10. NSLog(@"posicion %d = %@ ", i, [arr objectAtIndex: i]);
  11. }
  12. [pool drain];
  13.  
  14. return 0;
  15. }
Success #stdin #stdout #stderr 0.02s 42824KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
2016-05-01 20:18:28.462 prog[14269] posicion 0 = Colombia 
2016-05-01 20:18:28.463 prog[14269] posicion 1 = 1 
2016-05-01 20:18:28.463 prog[14269] posicion 2 = Lenguajes