You are trying to pass min_of_three
and max_of_three
that are function pointers of the signature:
int (*)(int, int, int)
to print_result
which expects int
arguments.
You want this:
print_result(min_of_three(x,y,z), max_of_three(x,y,z));
The functions min_of_three(x,y,z)
and max_of_three(x,y,z)
return int
that is then used as parameters for the print_result
function.