Objective-C基本数据类型
2012-02-02 16:18
399 查看
类型 常量实例 NSlog字符
char ‘a’,‘\n’ %c
short int ---- %hi,%hx,%ho
unsigned short int ---- %hu,%hx,%ho
int 12u,-97,0XFFE0,0177 %i,%x,%o
unsigned int 12u,100U,0XFFu %u,%x,%o
long int 12L,-2001,0xffffL %li,%lx,%lo
unsigned long int 12UL,100ul,0xffeeUL %lu,%lx,%lo
long long int 0xe5e5e5e5LL,500ll %lli,%llx,&llo
unsigned long long int 12ull,0xffeeULL %llu,%llx,%llo
float 12.34f,3.le-5f,0x1.5p10,0xlp-1 %f,%e,%g,%a
double 12.34,3.1e-5,0x.1p3 %f,%e,%g,%a
long double 12.341,3.1e-51 %Lf,$Le,%Lg
id nil %p
char ‘a’,‘\n’ %c
short int ---- %hi,%hx,%ho
unsigned short int ---- %hu,%hx,%ho
int 12u,-97,0XFFE0,0177 %i,%x,%o
unsigned int 12u,100U,0XFFu %u,%x,%o
long int 12L,-2001,0xffffL %li,%lx,%lo
unsigned long int 12UL,100ul,0xffeeUL %lu,%lx,%lo
long long int 0xe5e5e5e5LL,500ll %lli,%llx,&llo
unsigned long long int 12ull,0xffeeULL %llu,%llx,%llo
float 12.34f,3.le-5f,0x1.5p10,0xlp-1 %f,%e,%g,%a
double 12.34,3.1e-5,0x.1p3 %f,%e,%g,%a
long double 12.341,3.1e-51 %Lf,$Le,%Lg
id nil %p
相关文章推荐
- Objective-C语法之基本数据类型
- 1、Objective-C语法之基本数据类型
- Objective-C基础之基本数据类型
- objective-c(四)-基本数据类型以及循环和选择结构
- Objective-C 变量和基本的数据类型
- objective-c基本数据类型
- Objective-C语言_基本数据类型封装和拆包
- Objective-C中基本数据烦类型与对象数据类型相互转换的方法(OC中NSString的常用API的基础应用3)
- objective-c基本数据类型之输出格式符
- Objective-C数量类型-Objective-C 基本数据类型和常量
- 【Objective-C学习笔记】变量和基本的数据类型
- Objective-C语法之基本数据类型
- Objective-C基本数据类型、表达式和语句
- [置顶] Objective-C基本数据类型取值范围、字节
- Objective-C中的基本数据类型
- Objective-c语言_基本数据类型封装和拆包
- Objective-C语法之基本数据类型
- Objective-C中的基本数据类型
- Objective-C语法之基本数据类型
- 【iOS】objective-c2.0之基本数据类型