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 1 of 2.
Himansu ojha said:
6 years ago
&&,||,! are only 3 logical operators but &,|,^,>>,<<,~ are only 6 bitwise operators.
(1)
Vinoth M said:
1 decade ago
Tell me wat is the difference b/w logical and operator(&&) and bitwise and operator(&).
Nilesh Mohol said:
1 decade ago
& is a bitwise AND operator
Ajendra Singh said:
1 decade ago
Logical operator makes an expression to compound one but bitwise operator operates on bit for faster access.
Raghav Naganathan said:
1 decade ago
Technically, according to the way the question is grammatically phrased, the answer should be D.
The article 'a' makes a huge amount of difference in the question.The question must be phrased like this.
Which of the following is not a logical operator?
Then the answer is A
The article 'a' makes a huge amount of difference in the question.The question must be phrased like this.
Which of the following is not a logical operator?
Then the answer is A
Tata p said:
1 decade ago
Can anyone tell me why it is giving lvalue required
a>=5?b=100:c=200
a>=5?b=100:c=200
Iiittarun1625 said:
1 decade ago
Bitwise operators are &,|,^
Logical operators are logical and (&&),logical or(||)
so & is not logical operator
Logical operators are logical and (&&),logical or(||)
so & is not logical operator
Pandi said:
1 decade ago
@Tata p.
Put like this a>=5?(b=100):(c=100);
Put like this a>=5?(b=100):(c=100);
Akhilesh kumar said:
1 decade ago
& is a bitwise AND operator.
Arun said:
1 decade ago
When we are working on bitwise operator it will manipulate the data direct on binary representation.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers