I know its very naive question, but i am not able to understand what the following code does.
#include <malloc.h>
#define MAXROW 3
#define MAXCOL 4
int main(){
int (*p)[MAXCOL];
p = (int (*)[MAXCOL])malloc(MAXROW*sizeof(*p));
}
Please provide a complete explanation including the type and size of p.
It is just for learning purpose. I am not using this code in any real application.