Snail—OC学习之空变量的表示
2015-07-25 16:06
323 查看
#import <Foundation/Foundation.h> int main(int argc, const char * argv[]) { @autoreleasepool { //NULL:指针为空,C语言常用 int *p = NULL; //nil:表示对象指针为空 id obj = nil; NSArray * array = [[NSArray alloc] initWithObjects:@"11",@"22", nil]; //Nil:表示类为空 表示类的变量是空 Class class = Nil; //NSNull 跟nil 的作用相似 [NSNull null]; } return 0; }
相关文章推荐
- Snail—OC学习之NSNumber
- Snail—OC学习之日期NSDate
- UVa 11853 - Paintball(DFS)
- HDU 1302 The Snail
- http://blog.csdn.net/ooflywing/article/details/5616311
- HDU 2674-- N!Again【技巧】
- 最具体的历史centos下一个 postfix + extmail + dovecot + maildrop 安装注意事项2014更新
- HDU 5289 2015 Multi-University Training Contest 1 1002 RMQ+二分
- hdoj 2674 N!Again 【好题】
- Leetcode 11 Container With Most Water
- uva12546. LCM Pair Sum
- HDU 2473 Junk-Mail Filter (并查集的删除操作)
- 可笑的unsigned double http://blog.csdn.net/suhuaiqiang_janlay/article/details/6078034
- 动态规划,而已! CodeForces 433B - Kuriyama Mirai's Stones
- udp socket bind fail
- ZOJ 3675 Trim the Nails(bfs)
- 使用UltraISO制作启动盘装Windows系统详细教程
- AIX7.1+11.2.0.4RAC实施
- 如何提升 RailS 应用的性能?
- wait/waitpid函数使用