I want find size of array by pointer in a function.example :
//char array[] is a random array,i can alloc dynamic,so i can know size,i want access a random possition in array.
char* pointer;
void myfunc (char * array)
{
pointer = array;
//how many elements in the array???
}
i use C programming.