Support Board
Date/Time: Sun, 05 Apr 2026 08:52:22 +0000
Post From: determining length of an array?
| [2020-11-17 11:00:48] |
| User907968 - Posts: 869 |
|
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. |
