In C, if we declare an array, we can use sizeof() to get the length of the array. If I get a pointer, sizeof() will return the size of pointer to me, so how I can get the size of array pointed by the pointer or how to set the pointer to the last position? I know char * can use strlen, what about other type?
Thanks