PART 1 / LESSON 4 · Overview free · interactive lesson in the full course

Pointers and memory in embedded C

Understand pointer lifetime, pointer arithmetic, stack storage and address-related bugs in firmware.

View lesson accessAll lessons

What the lesson covers

The course lesson is called The board that resets. The Sparrow in a customer's greenhouse reboots every three hours, and the cause is a number that is also an address.

Before you start

Question to think about: How would you tell whether a pointer still refers to a live object?

Preparation exercise: Draw ownership and lifetime boundaries for a buffer that is passed between functions.

This is an original public study prompt, not the paid lesson or its solution. The interactive course contains the walkthroughs, labs, exercises and recaps.

Read the free embedded C articles for additional practice.

Test your understanding

Practice free firmware interview questions and mock interviews · Assess your readiness