Lets say I create a char array:
char myarrya[20];

Now I pass the array to a function:

function(myarray);

How can I find out inside the function the size allocated to the array? Assuming no string is placed in array yet. Strlen() and sizeof() only give the size of a string placed in the array.