【发布时间】:2010-04-03 06:23:23
【问题描述】:
我什么时候想使用单指针,什么时候应该使用双指针?
在下面的结构中究竟做了什么?
struct objc_class {
Class isa;
Class super_class;
const char *name;
long version;
long info;
long instance_size;
struct objc_ivar_list *ivars;
struct objc_method_list **methodLists;
struct objc_cache *cache;
struct objc_protocol_list *protocols;
};
为什么我们使用methodLists 双指针?
已编辑
int sqlite3_get_table(
sqlite3 *db,
const char *zSql,
char ***pazResult,
int *pnRow,
int *pnColumn,
char **pzErrmsg
);
在上述场景中,三重指针char ***pazResult 的含义是什么?
【问题讨论】:
标签: iphone c objective-c