I am always making a workaround so I don't have to allocate memory for a multidimensional array in C. I always just make an array like
if I need an unknown number of 2 position strings.
How would I work this out if I had some function like:
count = GetNumberOfElementsIneed();
*array = malloc(count);
and then be able to access the array contents like array etc..?
any help would be great. i don't care how i have to do it.
0 · ·