diff --git a/cv2/program.c b/cv2/program.c index fe26dbb..41041b4 100644 --- a/cv2/program.c +++ b/cv2/program.c @@ -36,7 +36,7 @@ int read_pizza(struct pizza* item){ //compare 2 elements int compare(const void *a, const void *b){ - + //to the value const void a(b) we will assign the value of the pointer to the structure struct pizza* pizza_a = (void*) a; struct pizza* pizza_b = (void*) b; float r = (pizza_a->prize > pizza_b->prize) - (pizza_a->prize < pizza_b->prize);