PART 1 / LESSON 1 · Free interactive lesson

C arrays and strings for firmware

Work with fixed-size sensor arrays, C strings and in-place traversal while keeping buffer lengths and storage boundaries explicit.

Open free interactive lessonAll lessons

What the lesson covers

The course lesson is called The row of mailboxes. Asha's first week: eight sensor readings, a log line that eats the motor speed, and a data frame that arrives backwards.

Before you start

Question to think about: How much memory does an array occupy, and what information is lost when it is passed to a function?

Preparation exercise: Try a small array with one missing element, a full buffer and an empty string. Record what the caller is allowed to read or write.

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

Related free reading

Test your understanding

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