Andy Anderson <[EMAIL PROTECTED]> wrote:
> I would say that this is because the "operand" && is "ANDING" 
> the numbers.  Therefore the response the the line print 1 && 
> 1 && 0; would be a 0. Since the line is a "mathematical string" 
> it is performed left to right (1 && 1 = 1, 1 && 0 = 0).

I'm not sure I read you correctly -- "ANDING" is kind of
vague terminology -- but the bitwise operators are one 
character (ampersand or pipe) and the logical operators 
are two characters each.

  2 && 1  == 1;  [ logical ]
  2 || 1  == 2;  [ logical ]

  2 & 1   == 0;  [ bitwise ]
  2 | 1   == 3;  [ bitwise ]

-- 
Steve

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to