I have to know size of an array after passing it to a function. For example,
#include<stdio.h>
void func(char *ptr)
{
     printf("%d\n",------); //Here i want the actual size of the array passed to ptr. What to fill in the blank to get total size of the arr[]
}
main()
{
    char arr[10] = "Hello";
    printf("%d\n",sizeof(arr));  // here it is giving 10 bytes that is equal to total size of the array
    func(arr);
}
 
     
    