Question: Need help understanding code. Specifically, each part in the written cmp method. In the parameters, what is const void*p? In the method, what is int

 Need help understanding code. Specifically, each part in the written "cmp"

Need help understanding code. Specifically, each part in the written "cmp" method. In the parameters, what is "const void*p"? In the method, what is "int *p1" and "*q1" pointing to? What does "p1=(int*)p " and "q1=(int*)q" do? What is being returned when it says "*p1>*q1"?

#include *q1; int main int i, a 3, 1, 2, 4, 5 clock t t1,t2; qsort (a 5, sizeof(int), cmp) for (i 0; l

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!