Bitwise OR operator in C# is

 Posted by Puneet20884 on 1/15/2010 | Category: ASP.NET Interview questions | Views: 6300
Select from following answers:
  1. OR
  2. ||
  3. |
  4. XOR
  5. All Above

Show Correct Answer

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Raja on: 1/15/2010
Hi Puneet,

Thanks for the useful information, however it would have been great if you would have given a paragraph of explanations about this operator.

Kindly provide this, I was not aware about this and want to know more about this.

Thanks and waiting.
Posted by: Puneet20884 on: 1/16/2010
Thanks Raja and nice to know you intereset in it,
You can check this on a nice blog there i found it :
Posted by: Hani on: 1/18/2010
Answer is shown as "XOR"... i guess its need to be corrected to "|"
Posted by: Supriya_y on: 2/9/2010
Correct answer for this is 2 nd one i.e ||
Posted by: Hani on: 2/10/2010
The answer for this is "|" and not "||"...
"||" performs a logical OR and "|" performs a bitwise OR.
Please refer the following msdn links for more details...

Login to post response