is that possible
for eg:
i have assigned a max of 50 elements in this array of structures
and i import data from a file and only 15 elements and the remaining 35 are doing nothing
is it possible to free the memory for that or is there any memory been assigned to be freed?
i tried this for instance and it didnt work
and it doesnt workCode:for (i = counter; i < 50; i++) { free (data[i]); data[i] = NULL' }
any comments
if u wanna see a working example of this array of structures program u can see it at www.mdofit.com/lab/lab5.c
it is working fine and is all done but i was hoping to make it more efficient
thanks
btw
anyone is free to use that program for anything they want