I've made an array that is dynamically allocated by a cycle. And then a cycle that reads the numbers out of the array but i need to know the size of the array. The array is correct and fully working and has correct values in it. I defined the array like this:
int *array;
Now when i want to use this it wont work because im using a pointer:
int size = sizeof(array)/sizeof(array[0]);
How can i fix it so it works with my pointer?