0

I'm trying to build a function that returns the length of an array in C++, So far I made the function:

int solution(int A[]) { return (sizeof(A)/sizeof(A[0]));

But I'm given the error: Dividing sizeof a pointer by another value,

Zedd7
  • 11
  • 3

0 Answers0