Lecture 13: May 1, 2023

Reading: zyBooks text, §6.16, 10
Assignments: Homework 2 and Extra Credit 2, due May 10

  1. Announcements
    1. Tutoring available from the CS Tutoring Club; sign up information in an announcement

  2. Reverse a string [reverse.c]

  3. Tower of Hanoi [tower.c]
    1. Using fprintf(stderr, …) to print error messages
    2. Input using fgets and sscanf

  4. C preprocessor
    1. How it works
    2. define
    3. undef
    4. include

  5. Files
    1. Review files and file pointers — mention file descriptors as underlying mechanism

UC Davis sigil
Matt Bishop
Office: 2209 Watershed Sciences
Phone: +1 (530) 752-8060
Email: mabishop@ucdavis.edu
ECS 36A, Programming & Problem Solving
Version of May 1, 2023 at 9:17PM

You can also obtain a PDF version of this.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh