Login Page - Create Account

Support Board


Date/Time: Mon, 15 Sep 2025 12:11:09 +0000



Post From: determining length of an array?

[2020-11-17 11:00:48]
User907968 - Posts: 844
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.