[Solved] Finding Length of an Array [duplicate]
When arrays are passed into functions, they undergo array-to-pointer conversion. This means an array of type T[N] will simply decay into T*. Notice how the size information has been lost. All that remains is a pointer to the first element of the array. Here is a quote from the Standard: 4.2 Array-to-pointer conversion An lvalue … Read more