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

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -