i have a question about using malloc to assign variable memory.
So if i use malloc i should free that pointer after i use it right.
How about it in a function i use malloc to allocate memory for a local variable.......but i call that function say 100 times. Should I also have a free before the end of that function? Also would it be more efficient to just declare it once as a global variable? (does the function redeclare all the variables each time it is called?)