Lecture 17: November 1, 2019
Reading
:
C text
>, §10, 13.1–13.2
Due
: Homework #3, due November 8, 2019
Greetings and felicitations!
How to write a recursive program
Recursive selection sort (
sort.c
)
Dynamic memory allocation
Library functions
malloc
,
realloc
Example: change
sort.c
to handle any number of numbers (
usort1.c
)
Structures
User-defined datatype
As fields:
var
.
field
,
ptrvar
->
field
Use example of list of numbers (
usort2.c
)
Do insertion sort (
linked.c
)
Matt Bishop
Office: 2209 Watershed Sciences
Phone: +1 (530) 752-8060
Email:
mabishop@ucdavis.edu
ECS 36A, Programming and Problem Solving
Version of October 31, 2019 at 11:50PM
You can also obtain a PDF version of this.