Some Interesting Facts
void pointers cannot be dereferenced, we will get the following compiler error: 'void*' is not a pointer-to-object type
The C Standard doesn’t allow pointer arithmetic with void pointers. However, in GNU C it is allowed by considering the size of void is 1.
e.g. arr[0] would be *(arr + 0) and therefore 0[arr] would be *(0 + arr) and you know that both *(arr + 0) and *(0 + arr) are same.
quicksort(ptr, beg, last - 1);
quicksort(ptr, last + 1, end);
} // func ends
It looks like you're new here. If you want to get involved, click one of these buttons!