+ 1
Why are arrays always passed as pointer as the argument when a function is called?
2 Respuestas
+ 1
Simply because it's impossible to pass all members or objects in array into a function
Note: an array type variable is actually a pointer itself, so if you write something like int arr[ ] as parameter or variable, it's actually a pointer
+ 1
Ok I got it... thanks