Latest Answer : allocation of memory for a particular variable like is done because to save unusage of memory ...
Latest Answer : Major difference between malloc and calloc:Memory allocation through malloc is
equivalent to single dimensional array.and calloc memory allocation is equivalent to double dimensional array. ...
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?