Home Posts Topics Members FAQ
Join Bytes to post your question to a community of 473,326 software developers and data experts.
if y[1]>y[2] { inhi=2; ihi=1; } else { inhi=1; ihi=2; }
ihi = y[1]>y[2] ? (inhi=2,1) : (inhi=1,2); does indeed the same as if y[1]>y[2] { inhi=2; ihi=1; } else { inhi=1; ihi=2; } Is it meant to be an entry for the obfuscated C-code competition or something ?
Can someone tell me what the above is in "easy" C code, ie. using if and else? I think it's this: if y[1]>y[2] { inhi=2; ihi=1; } else { inhi=1; ihi=2; } but I'm not sure. Thanks.
This thread has been closed and replies have been disabled. Please start a new discussion.
By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.
To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.