i thought that it was the correct way to do it :-(
how can i fix it?
i thought that it was the correct way to do it :-(
how can i fix it?
"Artificial Intelligence usually beats natural stupidity."
It depends on what you want to achieve...how can i fix it?
if you need array of n elements malloc should look like:
Code:p = malloc(n * sizeof (*p) );
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler