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.

Checking what this lesson needs for you…

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