Lesson 2: It's Nice to C You

Outline:

  1. Number representations
    • recap bases: decimal, binary, hex
    • conversions: binary/decimal/hex
    • example: integers.c
    • numerical types: char, short, int, long, float, double
    • size conversions
  2. Numerical operations
    • recap: logical, bitwise
    • shift ops: <<, >>

Next steps

  1. Lab #1: Debugging C with GDB
  2. Assignment 1 - due Friday afternoon!
  3. Syllabus: read it and post questions on Slack

Want additional practice?

Try out the exercises related to binary and bitwise operators to get more practice.

Reading assignment (to be completed by the next class):

What we talked about today:

General useful course information: