#import int main (int argc, const char * argv[]) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSMutableArray *myArray = [NSMutableArray array]; [myArray addObject:@"Wyomissing"]; [myArray addObject:@"Wilson"]; [myArray addObject:@"Governor Mifflin"]; int i = 0; // loop variable int count = [myArray count]; // number of elements for (i = 0; i < count; i += 1) { NSString *element = [myArray objectAtIndex:i]; NSLog(@"The element at index %d in the array is: %@", i, element); } [pool release]; return 0; }// end of main