Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
array
//gcc 5.0.4 #import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { NSArray *boys=[NSArray arrayWithObjects:@"dhruv",@"harsh",@"avinash",nil]; NSArray *girls=[NSArray arrayWithObjects:@"ami",@"hemagi",@"palak",nil]; for(NSString *i in boys) { NSLog(@"boys=>%@",i); } for(NSString *g in girls) { NSLog(@"girl=>%@",g); } if([boys isEqualToArray:girls]) { NSLog(@"True"); } else { NSLog(@"false"); } if([boys containsObject:@"dhruv"]) { NSLog(@"True"); } else { NSLog(@"false"); } NSArray *sub=[girls subArrayWithRange:NSMakeRange(1,2)]; NSLog(@"%@",sub); }
run
|
edit
|
history
|
help
0
Obj C Program Structure
NSSet Program in objectice-c
string combine
HAL is IBM
NSString & MutableNSString Examples in one
Author1
NSString & MutableNSString Examples in one
Cylinder And Circle
basic arithmatic Opreation in objective C
change case