CS136 Lecture Notes - Lecture 24: Quicksort, C String Handling, Memory Management
Tuesday, April 3, 2018
1
Lec 24
CS136
- Void pointers
• Any type
• Just memory address
• Cannot be directly dereferenced
1
- Implementing ADTs with void pointers
• Memory management
- Client or ADT is responsible for freeing item data
• Comparisons
- Some ADTs must be able to compare items when searching and sorting
1 University of Waterloo, CS 136 Winter 2018, 12-Abstract_data_types, p18, Snapshotted by
author