1.

Can the sizeof operator be used to tell the size of an array passed to a function?

Answer»

Passing an ARRAY as a parameter in C or C++ does not PASS information about how many elements there are in the array. Although sizeof() can tell you the size of the pointer and the size of the type it points to, it cannot tell you how many bytes are OCCUPIED by the ENTIRE array.



Discussion

No Comment Found