相关疑难解决方法(0)

为什么我们在Objective-C或C语言中使用双指针和三指针?

当我想要单指针时我感到困惑,何时我应该采用双指针?在以下结构中究竟做了什么?

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;
};
Run Code Online (Sandbox Code Playgroud)

为什么我们使用"**methodLists"双指针.

编辑 int sqlite3_get_table(sqlite3*db,
const char*zSql,
char***pazResult,
int*pnRow,
int*pnColumn,
char**pzErrmsg
); 在上面的场景中,三指针char***pazResult的含义是什么?

c iphone objective-c

3
推荐指数
1
解决办法
2660
查看次数

标签 统计

c ×1

iphone ×1

objective-c ×1