+ 2

What are the meaning of logical and bitwise operators in programming

12th Nov 2020, 11:50 AM
Joyce
Joyce - avatar
4 Respostas
+ 12
12th Nov 2020, 11:57 AM
Simba
Simba - avatar
+ 3
Logical is for condition, i.e., true or false. Bitwise is for bits, i.e., 1 or 0 Logical operator is used in boolean conditions. For example, true && false. (Logical and) Bitwise operator is used in number operation since the computer stores numbers as 1 and 0. For example 33 -> 00100001 & (Bitwise and) 100 -> 01100100 =32 -> 00100000 (both only 6th digit have 1)
12th Nov 2020, 11:58 AM
你知道規則,我也是
你知道規則,我也是 - avatar
+ 3
Ok thankyou ❤
12th Nov 2020, 12:03 PM
Joyce
Joyce - avatar