Computer Science, asked by TbiaSupreme, 1 year ago

Bitwise operations and logical operations are same in C programming. State whether the statement is True (or) False And Justify it

Answers

Answered by smarazazaidi
0

Answer:

This statement is true the result of both, logical and Bitwise operator is same.

Explanation:

Logical operator:

There are three types of logical operator NOT(!), AND( &&), OR(||) Result value of these operators is True or False. It is use for compare of two numbers such as greater than, less than or equal to.

Bitwise operator:

The type of operators that manipulate values in the form of integer bits or Boolean form  such as true equal to 1 and false equal  to 0.In this type of operators  AND represented by & , OR represented by | and NOT represented by ~.

Answered by smartbrainz
0

Bitwise operations and logical operations are same in C programming is a False statement.

Explanation:

  • C language supports following logical operators, && (Logical AND), || (Logical OR), ! (Logical NOT) and bitwise operators, & (Bitwise AND), | (Bitwise OR), ^ (Bitwise exclusive OR), << (left shift),  >> (right shift).
  • Logical operators apply to one or two operands, each of which may be true or false. A value is treated to be false if it is zero, and true if it isn't.
  • Bitwise operators are applied to each of the bits of one or two of the operands. A bit is considered to be true if it's set to 1 and false if it's set to 0.

Similar questions