This is about how to use {malloc,calloc, alloc} in efficient way.
Also tell me about 'free' function and its use.
Also tell me about 'free' function and its use.
T* tp= ...
char* cp= (char*)tp;
int n= ...;
if (((char*)(tp+n)) == (cp+n*sizeof(T))) puts("true")
Comment