W
warnockg90
Hi. I am trying to write a program that utilises pointers to
dynamically allocate memory. Initially I used arrays to run the
program but this is not so good when you have user inputted values and
have to leave an excess of space when creating the arrays. I am not
having any difficulties using a single pointer to structures, but need
to create a double pointer to standard integers in memory and am not
sure how to create them or then to access the individual elements of
ints in memory.
I have a book on C but its explanations of this have been slightly
limited.
Any advice or useful links would be greatly appreciated.
Regards.
dynamically allocate memory. Initially I used arrays to run the
program but this is not so good when you have user inputted values and
have to leave an excess of space when creating the arrays. I am not
having any difficulties using a single pointer to structures, but need
to create a double pointer to standard integers in memory and am not
sure how to create them or then to access the individual elements of
ints in memory.
I have a book on C but its explanations of this have been slightly
limited.
Any advice or useful links would be greatly appreciated.
Regards.