Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
primitive datatypes objective c
//gcc 4.8.4 #import <Foundation/Foundation.h> void main() { BOOL isBool = YES; NSLog(@"%d", isBool); NSLog(@"%@", isBool ? @"YES" : @"NO"); char aChar = 'a'; unsigned char anUnsignedChar = 255; NSLog(@"The letter %c is ASCII number %hhd", aChar, aChar); NSLog(@"%hhu", anUnsignedChar); short aShort = -32768; unsigned short anUnsignedShort = 65535; NSLog(@"%hd", aShort); NSLog(@"%hu", anUnsignedShort); int anInt = -2147483648; unsigned int anUnsignedInt = 4294967295; NSLog(@"%d", anInt); NSLog(@"%u", anUnsignedInt); long aLong = -9223372036854775808; unsigned long anUnsignedLong = 18446744073709551615; NSLog(@"%ld", aLong); NSLog(@"%lu", anUnsignedLong); long long aLongLong = -9223372036854775808; unsigned long long anUnsignedLongLong = 18446744073709551615; NSLog(@"%lld", aLongLong); NSLog(@"%llu", anUnsignedLongLong); }
run
|
edit
|
history
|
help
0
objective c find factorial
enheritance
string compare
basic arithmatic Opreation in objective C
NSMutableStringProgram
floating in objective c
string combine
NSSet Program in objectice-c
Az Flights Optimization
asss