size of array passed to C++ function? [duplicate]

You can’t – arrays decay to pointers when passed as function parameters so sizeof is not going to help you.

Leave a Comment