Why we used double and triple pointer in objective-C or C language?
Posted
by Rajendra Bhole
on Stack Overflow
See other posts from Stack Overflow
or by Rajendra Bhole
Published on 2010-04-03T06:23:23Z
Indexed on
2010/04/23
11:43 UTC
Read the original article
Hit count: 496
Hi, I confused when i want to take single pointer and when should i take double pointer? In following structure what exactly did?
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;
};
Why we use the "**methodLists" double pointer.
Edited
int sqlite3_get_table(
sqlite3 *db,
const char zSql,
char **pazResult,
int *pnRow,
int *pnColumn,
char *pzErrmsg
);
In above scenario what will be meaning of triple pointer char **pazResult?
© Stack Overflow or respective owner