I have a problem in a C program: I would like to free the first element from a dynamic array but I don't know if it is possible nor how I could do it. For instance if I allocate an array A made of 10 integers like this:
int *A;
A=(int*)malloc(sizeof(int)*10);
is it possible to free the first position of the array? In which way?
I must optimize the program so I can't do some memcpy
ignoring the first element or similar stuff because it would be a slowdown.