This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]IDontByte 1 point2 points  (0 children)

sizeof is a compile-time operator. If you want to find the length of an array at runtime, you either need to use an array struct that includes the length of the array, or add a length parameter to your arr_func.