c++ - length of array inside class function [duplicate]
问题 This question already has answers here : When a function has a specific-size array parameter, why is it replaced with a pointer? (3 answers) Closed 6 years ago . i know there are several threads asking a similar question but i couldn't find a solution and i'm somewhat new to c++. I want to calculate the length of a DWORD array. So it's just an unsigned long. DWORD offsets[] = {0x378, 0x14, 0x0}; This is my header definition of the func: DWORD allocateAddress(DWORD, DWORD[]); This is inside