CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: James Curran

Search: Search took 0.39 seconds.

  1. Replies
    21
    Views
    47,874

    Re: Logical XOR in C/C++?

    Basically, the purpose of having both logical and bitwise AND and OR is to allow short-circuit evaluation on the logical expressions. Other wise, you could get by with just the bitwise operators.
    ...
  2. Replies
    21
    Views
    47,874

    Re: Logical XOR in C/C++?

    There is no logical XOR in C++, mainly because, unlike AND and OR, XOR cannot be "short-curcuit" evaluated: With AND and OR, once you've evaluated the first operand, half the time you'll know if...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured