Support Board
Date/Time: Thu, 13 Feb 2025 03:04:59 +0000
Post From: determining length of an array?
[2020-11-17 11:00:48] |
User907968 - Posts: 826 |
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. |