Saturday, December 5, 2009

Find the maximum of three integers using the ternary operator.

max = ((a>b)?((a>c)?a:c):((b>c)?b:c));

No comments:

Post a Comment