From fb622e0d22ab6016fa2781ccb3182067d76e7e74 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Sun, 1 Nov 2020 20:50:49 +0100 Subject: [PATCH] comments --- cv2/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);