C++20 sections · 1024 units
Open in CourseQuiz: Functions with Arrays
Test understanding
Check Your Understanding
What happens to the original array if a function modifies its elements?
- A.The original array is modified because arrays are passed by pointer
- B.The original array is unchanged because arrays are copied
- C.The program crashes
- D.Only the first element is modified