I allocated memory:
int *p = (int *) malloc(sizeof(int));
Then I typcase it:
char *new = (char *)p;
I deallocate it:
free(new);
1) How much memory will be deallocated as character has 1 byte of space? 2) what internal mechanism should a memory manager make (in embedded system) to keep track of allocated memory and deallocated memory? (no Boolean allowed)