c++ - Why would anyone ever need a pointer to a pointer? -
for example why 1 need char **myvariable;? if pointer address in memory why difference make if it's pointer address pointer address of char pointer address char?
in assembly wouldn't like
ldr r3, =myvariable ldr r2, =[r3] ldr r1, =[r2] ldr r0, =[r1] where single pointer be
ldr r1, =myvariable ldr r0, =[r1] now r0 holds value? way faster.
well, if have table of pointers, pointer table have type "pointer pointer".
Comments
Post a Comment