Given is an array of three numeric values and I\'d like to know the middle value of the three.
The question is, what is the fastest way of finding the midd
It can be solved in one line by the ternary operator
int middle(int A, int B, int C) { return (A>B&&A>C)?B>C?B:C:(B>C&&B>A)?A>C?A:C:B; }