|| , |, &&, &

This is a discussion on || , |, &&, & within the C Programming forums, part of the General Programming Boards category; Hi, What's the difference between 1- || and | 2- && and & I learned that when I was in ...

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    75

    || , |, &&, &

    Hi,


    What's the difference between

    1- || and |

    2- && and &

    I learned that when I was in school but I can't remember.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    23,807
    Does "bitwise and" and "bitwise or" jig your memory? & is bitwise and and | is bitwise or.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    75
    thanks

    Bitwise AND
    Logical AND

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Personal Program that is making me go wtf?
    By Submeg in forum C Programming
    Replies: 20
    Last Post: 06-27-2006, 12:13 AM
  2. process killer on a loop
    By Anddos in forum Windows Programming
    Replies: 8
    Last Post: 01-11-2006, 12:50 AM
  3. Replies: 4
    Last Post: 11-23-2003, 06:15 AM
  4. Massive Function Problem
    By Marc Sharp in forum C Programming
    Replies: 10
    Last Post: 11-19-2003, 07:49 PM
  5. Tic Tac Toe Help
    By aresashura in forum C++ Programming
    Replies: 1
    Last Post: 11-21-2001, 11:52 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21