+ 2

What are the meaning of logical and bitwise operators in programming

12th Nov 2020, 11:50 AM
Joyce
Joyce - avatar
4 Answers
+ 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