Latest Answer : allocation of memory for a particular variable like is done because to save unusage of memory ...
Latest Answer : malloc and calloc both are used to assign memory to a varible dynamically.the space takes place in heap area.malloc is for single block of memory(continous locations).calloc is for non continous blocks. ...
Latest Answer : No ,its not possible to have a dynamic array without using calloc,malloc or without ptr.... Why u want to know abt it? but u can achieve a array without specifying size say arr[]; but its not efficient as when u use this array..more space will ...
int *ptr = (int *)malloc(100*(sizeof(int)));ptr++;free(ptr);
Latest Answer : it will allocate 200 bytes of memory and returns pointer to the first location...correct me if iam wrongregardsumesh ...
When dynamic allocation of memory is done by using malloc then how is the memory allocated in sequential or in some other format ?
I mean generally after execution of c program .c,.doc,.exe,.bak files are created,so how these files are allocated in the memory stack?