comments
This commit is contained in:
parent
a395055ead
commit
fb622e0d22
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user