Chapter
Using Arrays with Functions
From ComputerScienceOne by Dr Chris Bourke
Concepts
- How do you deallocate dynamically allocated arrays?
"Once dynamically allocated memory is no longer needed, we should release it so that it can be reused by the program or the operating system. The free() function in the standard library does this for
- How are arrays passed to functions in C?
"Since arrays are represented using pointers, we can pass and return arrays to and from functions simply by passing in a pointer. When passing an array to a function, we also need to make sure that we