C Programming - Control Instructions - Discussion
Discussion Forum : Control Instructions - General Questions (Q.No. 3)
3.
Which of the following is not logical operator?
Answer: Option
Explanation:
Bitwise operators:
& is a Bitwise AND operator.
Logical operators:
&& is a Logical AND operator.
|| is a Logical OR operator.
! is a NOT operator.
So, '&' is not a Logical operator.
Discussion:
14 comments Page 2 of 2.
Linu said:
9 years ago
The & operator is a bitwise operator.
Pravani said:
9 years ago
'&' is a bitwise operator. '!' is unary operator. Both are not logical operator then why we choose only '&'.
Vinojayaraj said:
9 years ago
I agree @Linu.
Himansu ojha said:
6 years ago
&&,||,! are only 3 logical operators but &,|,^,>>,<<,~ are only 6 bitwise operators.
(1)
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers