Can someone please explain to me how dynamic memory allocation actually works? For example whast going on in the piece of code written below? If you can respond asap, that would be great. Thanks in advance.
p = (float *) malloc ( n * sizeof( float ));
And whats the difference in malloc and calloc?