You define sort
as function variable, assign a value to it, but never call it, so neither decending_sort()
nor ascending_sort()
is ever executed.
To invoke it add this last line to `main()
[...]
sort();
}
Also: Functions without any parameters shall be declared like this:
void decending_sort(void);
Either should be a variable of their type
void (*sort)(void);