'sizeof' provides size information of types, not runtime array lengths when dealing with pointers. Always rely on a predefined constant or explicit size parameter for looping over arrays returned from functions.