单选题

考虑以下代码: NSMutableString * s1 NSMutab...

发布于 2022-03-03 16:11:31

考虑以下代码:
NSMutableString * s1
NSMutableString * s2
s1 = [[[NSMutableString alloc] initWithString:@"Hello world!"] autorelease]
[[[[s1 retain] retain] retain] release]
s2 = [s1 copy]
[s1 release]
s1和s2的引用计数分别是多少?

登录后免费查看答案
关注者
0
被浏览
16
知识点
面圈网VIP题库

面圈网VIP题库全新上线,海量真题题库资源。 90大类考试,超10万份考试真题开放下载啦

去下载看看