How can I view the number of bytes that have been allocated by using the malloc function?
mem = (float*)malloc(num*sizeof(float));
printf("The amount of memory allocated using malloc is %d.", mem);
Note: The variable "num" in my program is equal to 7.
But every time I run the program, this value changes.