Lecture 20: May 19, 2023

Reading: zyBooks text, §12.3
Assignments: Homework 3 and Extra Credit 3, due May 25

  1. Announcements
    1. We haven’t graded the midterms yet

  2. Bases
    1. Hexadecimal to Binary, binary to hexadecimal
    2. Decimal to Binary, binary to decimal

  3. Bit operators and operations
    1. And (&), or (|), xor (\^), not (\sim)
    2. Left shift (<<), right shift (>>)
    3. Extracting one or more bits from a word [bits1.c, bits2.c, bits3.c]

UC Davis sigil
Matt Bishop
Office: 2209 Watershed Sciences
Phone: +1 (530) 752-8060
Email: mabishop@ucdavis.edu
ECS 36A, Programming & Problem Solving
Version of May 22, 2023 at 11:51AM

You can also obtain a PDF version of this.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh