Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
Goldbach Conjecture
Strings
string type cast
03 Muestra enteros y flotante
GetRequest
NSString & MutableNSString Examples in one
NSSet Program in objectice-c
NSSet ex
if con boleanos 01
NSMutable Exercise
stackse - search stackoverflow differently
Please log in to post a comment.