Outline for April 30, 2025

Outline for April 30, 2025

Reading: zyBooks text §7.1–7.4, 8.3 8.6, 8.7
Due: Homework #2, due April 30, 2024


  1. Review for midterm

  2. 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]

  3. Structures
    1. What they are; how to reference fields
    2. Linked lists [linked.c]
    3. Structures and multiple arrays [planets1.c, planets2.c, planets3.c, planets4.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 April 28, 2025 at 10:45PM

You can also obtain a PDF version of this.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh