Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
datara nikad....
by admin, 4 years ago
Please
log in
to post a comment.
if con boleanos 01
NSMutableStringProgram
book
Obj C Program Structure
emp class
array
NSSet Program in objectice-c
string type cast
size of datatypes in objective c
floating in objective c
stackse - search stackoverflow differently
datara nikad....
by admin, 4 years agoPlease log in to post a comment.