Hi,
Could any one please help me in determining the size of the dynamically allocated memory.
#include <stdio.h>
#include <malloc.h>
int main()
{
int *mem;
mem = (int*)malloc(5*sizeof(int));
}
here i need the no.of bytes allocated for the "mem" which is 20 bytes (assuming int is of 4 bytes). i believe this would be a very simple one but am new to this c programming and hence expecting help from you.
Thanks in advance
Regards,
Anand V