Name:
Anonymous
2011-09-29 14:54
What should
a ? b = c : b = d
do?
Name:
Anonymous
2011-09-29 15:40
>>8 is wrong because:
Considering
a is either 1 or 0
If a = 1
b = (c*1) + (d*1) then b = c + d
>>11, on the other way, is better
*** If a = 1 ***
b = (c*1) + (-d*0)
then b = c
*** If a = 0 ***
b = (c*0) + (-d*(0-1))
b = (0) + (-d*-1))
b = (-d*-1)
then b = d