When I allocate memory for an array, can I afterwards get an information about the size of the allocated memory?
The background is a simple function named vectorsum, that I programmed.
I find it a bit stupid, that I have to give the length to the function and it is also bad, that it is restricted to one data type (float*).
vectorsum(float* vector,int length)
I would be glad to get a fast answer from you.
Thank you in advance.