Theocacao
Leopard
Design Element
Comment on "Intro to C Pointers and Dynamic Memory"
by DAniel — Jun 28
I think it's a very good article... liked it very much..
I'm trying to deal with a little subject , may be you could help me.
Supose I declare a pointer to char and allocate some memory for it, and then, in the middle of the program turns out to be insuficient. how could I enlarge the amount of space allocated for it. for example, when reading unknown length input from the keybord.
Other thing I'm having some problem with is when trying to get the size of an array of pointers to char (char *ptrarr[]) . How could I know how many pointers to char are there ? sizeof(ptrarr) doesn't work.
Back to "Intro to C Pointers and Dynamic Memory"
Design Element

Copyright © Scott Stevenson 2004-2015