+ 3
When I pass an array to a function,Is it passed by value or passed by reference?
I’m confused.When creating a function using an array as a parameter, there’s no “&” before the array, which means “pass by reference” However, the function acts as if it were passed by reference.
6 ответов
+ 3
They turn implicitly into pointers, their size is unknown when passed to a function and they don't match with the stl container design so that they're lacking consistency.
And if you make them 2d, it's even worse.
+ 1
Do you use the array class or low level bad practice C arrays?
0
C++