Support Board
Date/Time: Thu, 13 Feb 2025 02:34:18 +0000
Post From: determining length of an array?
[2020-11-17 07:30:56] |
ycomp - Posts: 321 |
I have a void funcc(int ma[]) {
int len = sizeof(ma)/sizeof(ma[0]); } this won't compile... at least not in my real code which has this in it.. how can I determine the length of an array that is passed to a function? the sizeof code just seems to be how people usually do it in c++, at least that's my impression from googling Date Time Of Last Edit: 2020-11-17 07:31:32
|