O
orium69
Hi everyone!
I have a doubt, when I free an alloced memory, how does the compiler
know how many bytes I have alloced forward the pointer.
eg:
int *coiso;
coiso=(int *)malloc(sizeof(int)*10);
free(coiso);
How the compiler know that it has to free from coiso to
coiso+(sizeof(int)*10)?
thanks
sorry for my probably realy bad english...
I have a doubt, when I free an alloced memory, how does the compiler
know how many bytes I have alloced forward the pointer.
eg:
int *coiso;
coiso=(int *)malloc(sizeof(int)*10);
free(coiso);
How the compiler know that it has to free from coiso to
coiso+(sizeof(int)*10)?
thanks
sorry for my probably realy bad english...