C++20 sections · 1024 units
Open in Course

Quiz: Functions with Arrays

Test understanding

Check Your Understanding

What happens to the original array if a function modifies its elements?

  1. A.The original array is modified because arrays are passed by pointer
  2. B.The original array is unchanged because arrays are copied
  3. C.The program crashes
  4. D.Only the first element is modified
Start the roadmap to answer the quizzes and solve the challenges