Hi I am new. I hope this is not asked recently. Is it possible to pass the character array by itself instead of as a pointer? I want to get the size of array in the function the array was passed in. Can you do that? The following code only returns the size of pointer, not the size of buffer. Please help.

Code:
void Test()
{
   char testStr[128];
   int testSize = GetSize(testStr);
   std::cout << testSize << std::endl;
}

int GetSize(char testStr[])
{
   return sizeof(testStr);
}