mattias1975
Programmer
Hello!
What is the differenc betwen malloc, calloc ond realloc?
The only thing i know is that malloc is used for alocating memory.
I have a bug in my code. The first time i use malloc everything works. But the next time at the same row the program "hangs up" at the point where i am calling the malloc. Whats wrong?
I am freeing the memory with free(). Should i use calloc or realloc instead?
Thank you
What is the differenc betwen malloc, calloc ond realloc?
The only thing i know is that malloc is used for alocating memory.
I have a bug in my code. The first time i use malloc everything works. But the next time at the same row the program "hangs up" at the point where i am calling the malloc. Whats wrong?
I am freeing the memory with free(). Should i use calloc or realloc instead?
Thank you