C# Programming - Operators - Discussion

Discussion Forum : Operators - General Questions (Q.No. 5)
5.
Which of the following is NOT a Bitwise operator in C#.NET?
&
|
<<
^
~
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
18 comments Page 1 of 2.

Sundar said:   1 decade ago
C# Operators:

Logical (boolean and bitwise): & | ^ ! ~ && || true false

Shift: << >>

Relational: == != < > <= >=

Aishik said:   1 decade ago
<< this is a left shift operator but it works on bits. It shifts and no.of bits. Hence it is also a bit wise operator.

Hed said:   9 years ago
All are bitwise operator. << is too.

if x==0001 and x<<=2.

then, x=0100.

Raiz said:   1 decade ago
Wrong question. All are bitwise operators (<< is a left shift bitwise operator).

Waleed said:   9 years ago
It should contain an additional option All of above, and it will be the right answer.

Ishan said:   1 decade ago
<< shift operator are not properly bitwise operator it is bitwise operation.

Vikrant said:   1 decade ago
All above are bitwise operators, below is a reference for shift operator.

Carmel Raj said:   1 decade ago
Shift Operator is also bitwise operator so all are Bitwise operator.

Rohit said:   10 years ago
This answer is not accurate. << is left shift operator in C#.

Raj Barnwal said:   1 decade ago
Yes, all are bit wise operators in C# as well as C and C++.


Post your comments here:

Your comments will be displayed after verification.