//Integers: %i or %d int int_val = -10; NSLog(@"%i, %d", int_val, int_val);
unsigned int uint_val = 5; //unsigned integers use %u NSLog(@"%u", uint_val);
//float and double use %f float f_val = 12.75; NSLog(@"%f", f_val);
// Hexadecimal %x or %X int hex = 0x15; NSLog(@"%x", hex);
// Character %c char char_val = 'A'; NSLog(@"%c", char_val);
No comments:
Post a Comment