Hi,
I have a problem with memory allocation in C. After allocating with malloc a matrix of integers :
int*a = malloc(10 * sizeof (int));
I would like to free the memory occupated by some values like a[3], or a[5], but keeping the other elements of the matrix and the matrix itself.
Can anybody help me?
Thanks anticipated
I have a problem with memory allocation in C. After allocating with malloc a matrix of integers :
int*a = malloc(10 * sizeof (int));
I would like to free the memory occupated by some values like a[3], or a[5], but keeping the other elements of the matrix and the matrix itself.
Can anybody help me?
Thanks anticipated