Hi, I want to know how to create a interger matrix of [n] rows and [m] columns with malloc.
any ideas
creates an array of length [n]Code:*matix = malloc ( sizeof (int) * n ); if ( matrix == NULL ) exit ( EXIT_FAILURE ); /* Memory could not be allocated, so exit. */
I know I want to create an array [n] long of arrays [m] long but I really have no idea of how to do it...
help me please