Lecture Notes
The instructor reserves the right to update lecture notes right up to class time and within two weeks after each corresponding lecture. Check the time and date at the bottom left corner of the slides to make sure you have the most up-to-date version.
Course Information [PDF]
Course Content
Introduction to C - Basic I/O [PDF]
Reading: Chapter 1
Homework: What are the outputs of these C programs?
References: floating-point numbers;
EOF character
Differences between C and Java: list 1,
list 2
More example C programs [PDF]
Reading: Chapter 1
References: simple C examples;
more C examples
Arrays and Control Flow [PDF]
Reading: Section 1.6 and Chapter 3
Types, Operators and Expressions [PDF]
Reading: Chapter 2
References:
C data types;
Unicode in C;
how to convert from octal or
hexadecimal to decimal.
Pointers (part 1)
Reading: Chapter 5
Structures [PDF]
Reading: Chapter 6
Reference:
C programming FAQ
C programming exercises (with solutions)
Note:: If you do not have time to solve all problems on that page, focus on sections "Array", "Pointer" and "String".
Pointers and Arrays (part 2) [PDF]
Reading: Chapter 5
File I/O [PDF]
Reading: Section 7.5
Introduction to UNIX -
Reference
References: UNIX file types,
The Strange Birth and Long Life of Unix, IEEE Spectrum, Decmber 2011
Introduction to UNIX - part 2 -
Reference
Reference:
chmod tutorial
Shell Scripting, part 1 -
PDF,
PowerPoint slides with detailed notes,
VIDEO (posted Mar. 22)
Shell Scripting, part 2 -
PDF,
PowerPoint slides with detailed notes,
VIDEO (posted Mar. 23)
Reading: this tutorial