Learn C Programming

Lesson 5 of 9 · Arrays

Module 9 · Arrays

Passing an Array to a Function

Free with an accountReading

Amara's teacher may double every mark as a bonus. Bob wants a preview, so he writes a function that doubles each mark and prints it.

Sign in to read

This lesson is free, with an account

An account costs nothing and opens every lesson in this track that is not marked Pro, on every device you read on.

What is inside Passing an Array to a Function

  1. Bob's preview changed the real marks
  2. The function gets where the boxes are
  3. Two parameters: the array and its count
  4. The size does not travel
  5. Filling an array and returning a count
  6. const: a promise not to change the boxes
  7. A grid needs its column count
  8. Memoisation: a recursion that remembers