Sign in to confirm you’re not a bot
This helps protect our community. Learn more

What did we cover last time? Characters and Strings • Using letters as variables • Using arrays of letters Structs

22:16

Recap - Pointers Pointers • A pointer is a variable that stores a memory address to get an address • We can assign a memory address to a pointer • We can access the memory the pointer is aiming at using

29:49

Functions and Memory What actually gets passed to a function? • Everything gets passed by value • Variables are copied by the function • The function will then work with their own versions of the variables

34:28

Malloc() in code We can assign a particular amount of memory for use • The operator sizeof() allows us to see how many bytes a variable needs • We can use sizeof() to allocate the correct amount of memory

56:06
Lecture 11, COMP1511 - Programming Fundamentals 2020 Term 2 (Live Streamed)
Lecture 11 - Memory and Multi-file Projects. We'll be extending our use of pointers now into memory that we manage ourselves. We'll also be looking at how we can create a program over multiple code files.

What did we cover last time? Characters and Strings • Using letters as variables • Using arrays of letters Structs

22:16

Recap - Pointers Pointers • A pointer is a variable that stores a memory address to get an address • We can assign a memory address to a pointer • We can access the memory the pointer is aiming at using

29:49

Functions and Memory What actually gets passed to a function? • Everything gets passed by value • Variables are copied by the function • The function will then work with their own versions of the variables

34:28

Malloc() in code We can assign a particular amount of memory for use • The operator sizeof() allows us to see how many bytes a variable needs • We can use sizeof() to allocate the correct amount of memory

56:06

Follow along using the transcript.

Marc Chee

1.61K subscribers