I am editing a quick sort code so that the values of low, high, and middle point to an array element instead of integers.
This is my code:
#include
The problem is in this statement.
middle = split(a, low, high);
because middle
is a pointer variable whereas split
is a function which returns integer value not a pointer to an integer.
You are assigning integer value to a pointer variable middle
.
You are not allowed to do that. :)
May be this will help you.