Other contributors have said "How would you dynamically allocate a one-dimensional and two-dimensional array of integers?" is the same question as "How do you declare an N-Dimensional array using Malloc?" If you believe that these are not asking the same thing and should be answered differently, click here
How do you declare an N-Dimensional array using Malloc?
A one dimensional array is a scalar value repeated one or more times.
A two dimensional array is an array of one dimensional arrays.
A three dimensional array is an array of two dimensional arrays,...