Lecture 6: April 14, 2023

Reading: zyBooks, §6.1–6.4
Assignments: Homework 1, due April 24

  1. Functions in C
    1. Parameters: pass (or call) by value
    2. Arguments: instantiations of parameters matched in order
    3. Return values
    4. Scope: local variables [scope.c]
    5. Show the program stack and how it relates to functions

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 April 14, 2023 at 12:11PM

You can also obtain a PDF version of this.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh