1/18
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
logical-not
!
logical-and
&&
logical-or
||
Logical-not (!) has higher precedence than the ____ which
has higher precedence than the _____.
logical-and(&), logical-or(||)
“Short Circuit Logic”
C only evaluates as much as necessary to determine the truth value.
&&The second operand will only be evaluated when the first operator is ____.
nonzero
|| If the first operand is nonzero, then the second operand is ______.
not evaluated.
~expression
replaces all the 0 bits by 1 and all of the 1 bits by 0
Bitwise AND (&)
both must be the same.
Bitwise OR (|)
at least one must be 1 for it to print 1, if same print the number
XOR ^
Only TRUE if one or the other is true but not both. One or the other but not both.
«
shift to the left, can multiply
»
shift to the right, can divide
01011100 & 00110011?
??
how to use a bit mask to determine if the 2^0 bit is on/off?
Use a bit mask of 2^0 which is the value 1
binary representation of even numbers has an LSB/rightmost bit of
0
binary representation of odd numbers has an LSB/rightmost bit of
1
<>
standard library files. The compiler looks in special system folders for them.
mean your own files. The compiler looks in the current folder first.
“ “