Possible Duplicate:
How to find the 'sizeof' (a pointer pointing to an array)?
I red this but it didn't help me much.
int* sum;
int size = 10;
sum = calloc(10, sizeof(int));
printf("Total length: %d", sizeof(sum)/sizeof(*sum))
The code returns 1 as expected.
I know that it would be easier to user the size variable.
My question is that is there a way of finding out this array correct size using sizeof?