CPSC 241 Computer Science IV
(Data Structures and Algorithms)

Fall 1998
TTh 12:30--1:45 Daniel 408
Syllabus

Chp1: Pointers, Arrays, and Structures

Sample programs

declars-prob.cpp
(built-in types example, featuring under-/over-flow assignments, see also compiler warnings)

ptrs.cpp
(simple pointer example)

ptrs-fault.cpp
(pointer (fault) example)

arrs.cpp
(array example)

dynarrs.cpp
(dynamic array example)

pass.cpp
(simple examples of pass-by-value, pass-by-ref, pass-by-const-ref)

Assignment 1

ll.cpp
(solution, pass-by-pointer[-to-pointer])

llByRef.cpp
(solution, pass-by-reference)