Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
basic objective c
//gcc 4.8.4 #import <Foundation/Foundation.h> void main() { // print string using variable NSString *name = @"Parth"; NSLog(name); // print string with concat and int value NSString *name1 = @"parth"; NSString *no = @"23"; int year = 1997; NSLog(@"my name is %@ roll number %@ birth year is %d!",name1, no, year); //simple for loop int i; for(i=1;i<=10;i++){ NSLog(@"%d",i); } //cut the string index wise NSString *make = @"parth"; int j; for (j=0; j<[make length]; j++) { unichar letter = [make characterAtIndex:j]; NSLog(@"%d: %c", j, letter); } }
run
|
edit
|
history
|
help
0
geomatric operations in objective c
fullname
Interface implementation
Book NSSet
NSSet ex
Func Var and Ops ObjC
string replace
Objective C Class and Object example
find simple Interest in objective c
NSArray Method Exercise