October 16th, 2003, 01:05 AM
How to reference **ptr_xx to ptr_yy [xx][xx]
Good Morning to everyone here. :P
May i know anyone here can help to answer one of my question. I would like to know how to reference double dimension array with double dimension pointer. ( i think this may sounds silly to someone here )
I have tried to reference one dimension array with pointer without problem,
e.g. char xx; char *yy;
yy = xx;
sprintf(yy, "You are a nice guy");
// good result
However, if i try with 2 dimension pointer to 2 dimension array
yy = xx;
// not working - cannot compile
// can compile - but it gives error during excution
Is there any method to hv the address of pointer same as array declared for 2 dimension memory.
I do not/cant use "malloc" and "new" due to some reason, can anyone help to answer to my doubt?
Thanks a millions time.
Click Here to Expand Forum to Full Width