embeddedlover
Full Member level 5
#define ROWS 2
#define COLUMNS 4
int main()
{
int(*p)[COLUMNS];
p = (int(*)[COLUMNS])malloc(ROWS*sizeof(*p)));
}
#define COLUMNS 4
int main()
{
int(*p)[COLUMNS];
p = (int(*)[COLUMNS])malloc(ROWS*sizeof(*p)));
}