Lecture 11: May 14, 2024

Reading: zyBooks text, §8.3 8.6, 8.7
Assignments: Homework 3, due May 24; Extra credit 2, due May 24

  1. Dynamic memory allocation
    1. sizeof() keyword [memoops.c]
    2. Library functions malloc, realloc. calloc, free [dyngets.c, mcat.c]
    3. Example: change sort.c to handle any number of numbers [usort1.c, usort15.c]

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 14, 2024 at 12:25PM

You can also obtain a PDF version of this.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh