MoSys interview question

Create 2-D array using malloc so that we can access them as a[2][3] i.e. like we access a 2D array created in compile time.

Interview Answer

Anonymous

6 Jun 2014

Create array of pointers which point to the pointer of each row of elements allocated using malloc.