Lesson 2: It's Nice to C You
Outline:
- Number representations
- recap bases: decimal, binary, hex
- conversions: binary/decimal/hex
- example:
integers.c - numerical types:
char,short,int,long,float,double - size conversions
- Numerical operations
- recap: logical, bitwise
- shift ops:
<<,>>
Next steps
- Lab #1: Debugging C with GDB
- Assignment 1 - due Friday afternoon!
- 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:
- DiS Sec. 4.1.1-4.1.3: Number Bases
- DiS Sec. 4.2: Converting Between Bases
- DiS Sec. 3.1: Debugging with GDB
General useful course information: