I need to implement a 2D array of a variable size but i dont know how to malloc 2d arrays anyone know how??

thanks for any help.