min function

15 Oct 2011

trying to do something simple here but not quite getting there attempting to implement a minimum function and using the following form

int min = i <? j;

while it will compile, it wont produce correct output any help appreciated...

15 Oct 2011

You need:

Result = a>b ? a : b;

Hope this helps

Ceri