Computer
Systems

Fall 2018
course
site

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

https://cs.marlboro.college /cours /fall2018 /systems /notes /chap2b
last modified Fri April 19 2024 9:30 am