Hi there this is a console application
here is the code:
it prints to console
2010-07-01 02:26:20.680 CalisArray[4936:903] MyNumber is, 1084752
I want to print number 11 which i add into my Array, however it prints another big number 1084752 why?? And how can i call 11?
here is the code:
Code:
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
// insert code here...
NSMutableArray *aras = [[NSMutableArray alloc]init];
[aras addObject:[NSNumber numberWithInt:11]];
NSLog(@"MyNumber is, %d",[aras objectAtIndex:0 ]);
[pool drain];
return 0;
}
it prints to console
2010-07-01 02:26:20.680 CalisArray[4936:903] MyNumber is, 1084752
I want to print number 11 which i add into my Array, however it prints another big number 1084752 why?? And how can i call 11?