Support Board
Date/Time: Fri, 19 Sep 2025 05:44:47 +0000
Post From: determining length of an array?
[2020-11-17 11:00:48] |
User907968 - Posts: 845 |
The array decays to a pointer when used as a function parameter i.e. you do not pass a copy of the original array, just a pointer to the first element, meaning that sizeof() is not useful here. One method is to pass the length of the array as a function parameter. |