L
Lakshmi Sreekanth
Hi,
My problem: I need to return 0 if 'number < 0' other wise return
value
should be 1.
Condition: Only by using below operators, We should not use any loops
or if or switch or any thing
Legal ops: ! ~ & ^ | + << >>
Ex: if (number < 0) // But, v should not use "if"
condition.
return 0;
return 1;
Waiting for clue.
Regards,
Laks ..... Sree.....
My problem: I need to return 0 if 'number < 0' other wise return
value
should be 1.
Condition: Only by using below operators, We should not use any loops
or if or switch or any thing
Legal ops: ! ~ & ^ | + << >>
Ex: if (number < 0) // But, v should not use "if"
condition.
return 0;
return 1;
Waiting for clue.
Regards,
Laks ..... Sree.....