C Programming - Control Instructions - Discussion
|
|
|
|
Read more:"The secret to creativity is knowing how to hide your sources."
- Albert Einstein
|
| 3. |
Which of the following is not logical operator? |
| [A]. |
& | [B]. |
&& | | [C]. |
|| | [D]. |
! |
Answer: Option A
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.
|
|
Vinoth M said:
(Sun, Mar 13, 2011 02:06:28 PM)
|
|
| |
| Tell me wat is the difference b/w logical and operator(&&) and bitwise and operator(&). |
|
Nilesh Mohol said:
(Sat, Jul 30, 2011 09:50:43 AM)
|
|
| |
| & is a bitwise AND operator |
|
Ajendra Singh said:
(Mon, Aug 22, 2011 01:34:25 PM)
|
|
| |
| Logical operator makes an expression to compound one but bitwise operator operates on bit for faster access. |
|
|