Computer Science, asked by satpathpandey, 1 year ago

Java logical operator different from bitwise operator

Answers

Answered by Anonymous
1
✔✔✔✔Ur answer✔✔✔✔

Some basic differences between the two operators. ✔✔✔✔

a) The logical and operator '&&' expects its operands to be boolean expressions ✔✔(either 1 or 0)✔✔ and returns a boolean value.✔✔

b) If an integral value is used as an operand for '&&' which is supposed to work on boolean values, following rule is used in C.✔✔
☺☺☺☺☺☺☺☺☺☺☺☺☺
Answered by rashiabhayashukla17
0
JavaScript Uses 32 bits Bitwise Operands
JavaScript stores numbers as 64 bits floating point numbers, but all bitwise operations are performed on 32 bits binary numbers. Before a bitwise operation is performed, JavaScript converts numbers to 32 bits signed integers.
Similar questions