Lecture 7: October 9, 2019

Reading: C text, §3.4–3.5, 6.4, 12.4
Due: Homework #1, due October 11, 2019 (Note extension)


  1. Greetings and felicitations!
    1. Homework due date is extended to Friday at 11:59pm
    2. Check the Canvas page for announcements (like the above)
    3. In problem 4, every line should end with a \n. So if you end a line in the input with \, that should show up as \\\n
    4. You should explore the Linux system. If you make a mistake, we won’t know about it, so don’t be shy — try things.
    5. rm deletes files. Be sure you give the –i option, and warn about rm * .o
  2. Functions in C [calc.c]
    1. Parameters: pass (or call) by value
    2. Arguments: instantiations of parameters matched in order
    3. Return values
    4. Scope: local variables

UC Davis sigil
Matt Bishop
Office: 2209 Watershed Sciences
Phone: +1 (530) 752-8060
Email: mabishop@ucdavis.edu
ECS 36A, Programming and Problem Solving
Version of October 12, 2019 at 10:42AM

You can also obtain a PDF version of this.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh