I have a project that specifies that we cannot use if statements. It's to find the second highest value in an array, without using if statements. All I am looking for is alternatives to if statements, because apparantly my prof doesn't like them. He said something about a statement that's formatted something like this:
(statement)? ( ) : ( ). but I had no clue what he was talking about because I have a hard time understanding him (he's from Romania)... Any help would be greatly appreciated.
edit: it's not finding the second highest value in an array, it was determining if one array was identical to another array. my bad, got those mixed up.