Support Board
Date/Time: Tue, 03 Feb 2026 15:03:44 +0000
Post From: determining length of an array?
| [2020-11-17 11:00:48] |
| User907968 - Posts: 865 |
|
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. |
