Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
objective-c size of datatypes
//gcc 4.8.4 #import <Foundation/Foundation.h> void main() { NSLog(@"Size of char: %zu", sizeof(char)); // This will always be 1 NSLog(@"Size of short: %zu", sizeof(short)); NSLog(@"Size of int: %zu", sizeof(int)); NSLog(@"Size of long: %zu", sizeof(long)); NSLog(@"Size of long long: %zu", sizeof(long long)); NSLog(@"Size of float: %zu", sizeof(float)); NSLog(@"Size of double: %zu", sizeof(double)); NSLog(@"Size of size_t: %zu", sizeof(size_t)); }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
string type cast
find maximum in objective c
array
find maximum in objective c
asss
nsset
size of datatypes in objective c
NSString Examples in one
aditation
NSString & MutableNSString Examples in one
Please log in to post a comment.