Computer Science 301
C Programming in Unix
Fall A 2026, Siena University
Meeting 2: C Essentials
Date: Tuesday, September 15, 2026
Agenda
- Announcements
- Lab 1: Introduction to Unix and C now past due and all graded
- A couple common issues in Lab 1: Introduction to Unix and C
- never add executables to your repositories, you're just asking
for a merge conflict
- Question 4.1: note the difference between a compiler warning
and a compiler error
- always start new files, no matter how insignificant, with a
banner comment that includes your name
- Tip: When programming in a new language, it's important to make
sure you have your logic correct before trying to code it in the new
language. It's sometimes worth going so far as writing, debugging,
and testing the program in a familiar language then doing a
translation.
- Readings for next time: K&R Ch. 2 and 3
- this is mostly familiar for Java programmers (after all, Java
stole a whole bunch of its syntax from C), please at least skim
through it, though
- Introduction to Assessment 1: [PDF], due in 1 week
- Mini Assessment (quiz) 1
- Today: Lab 2: C Essentials