Back to Browse

COMP1511 Week 7 Lecture 2

1.8K views
Streamed live on Oct 28, 2025
1:55:16

COMP1511 is UNSW's Programming Fundamentals. 00:00 Lecture starts 00:35 Announcements - wk 8 lab exam 03:47 Pointer recap recap_exercise.c demo 13:35 Pass by value recap 13:48 The Stack 17:10 Functions and pointers 19:50 Structs pass by value 22:27 Structs with pointers 26:15 Arrays are pass by reference 27:11 array_arguments.c demo 34:19 string_pointer_exercise.c demo 44:52 Returning pointers from functions 47:41 The heap 50:00 Lecture break 59:10 Manipulating memory on the Heap 01:06:48 illegal_stack_return.c demo stack vs heap 01:17:06 Create array on heap malloc_array.c 01:20:45 Null pointer 01:24:19 Running out of memory 01:29:05 Mallocing structs in functions 01:43:13 Multi-file projects

Download

0 formats

No download links available.

COMP1511 Week 7 Lecture 2 | NatokHD