Fall 2018

Aside: Ben's undefined C example

more C

C topics to discuss using those examples

chap 2 - continued

Discuss these ideas using the CMU slides or other sources ...

bitwise operators ; logical operators

&    bitwise AND           x & y      treats x as "bit vector"
|    bitwise OR            x | y
^    bitwise XOR           x ^ y
~    bitwise COMPLEMENT    ~ x

&&   logical AND           treats whole thing as "true" or "false"
||   logical OR
!    logical NOT

exercises in class

The assignment for next Tuesday is posted with both some C coding and exercises from the text.

coming soon - machine assembly /cours /fall2018 /systems /notes /chap2b
last modified Tue December 5 2023 8:55 am