Posted by Steve on 04/08/07 14:56
"Hendri Kurniawan" <ask-me@email.com> wrote in message
news:131g1kl294748ce@corp.supernews.com...
| Steve wrote:
| >
| > you have heard of tertiary operators, right?
| >
| > g = y > 170 && g == 0 ? 1 : 0;
| > q = q + 5 * (g ? -1 : 1);
| > y += q;
| >
|
| Sorry I though it was "ternary" operator, not "tertiary"... Which one is
| correct?
i had a brain-fart...it typically is referred to as ternary.
[Back to original message]
|