Computer Science 301
C Programming in Unix
Fall A 2025, Siena University
Meeting 2: C Essentials
Date: Wednesday, September 10, 2025
Agenda
- Announcements
- Lab 1: Introduction to Unix and C now past due, sample solutions video coming soon
- 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