|| , |, &&, &

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
    22,127
    Does "bitwise and" and "bitwise or" jig your memory? & is bitwise and and | is bitwise or.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    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, 01:13 AM
  2. process killer on a loop
    By Anddos in forum Windows Programming
    Replies: 8
    Last Post: 01-11-2006, 01:50 AM
  3. Replies: 4
    Last Post: 11-23-2003, 07:15 AM
  4. Massive Function Problem
    By Marc Sharp in forum C Programming
    Replies: 10
    Last Post: 11-19-2003, 08:49 PM
  5. Tic Tac Toe Help
    By aresashura in forum C++ Programming
    Replies: 1
    Last Post: 11-21-2001, 12:52 PM

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