Write a function that copies a one-dimensional array
[ad_1]
Write a function that copies a one-dimensional array of n elements into a two-dimensional array of j rows and k columns. The resulting array will be placed in the heap. The data will be inserted into the array in row order; that is, the first k items will be placed in row 0, the second k items in row 1, and so forth until all rows have been filled.
If j and k are not factors of n—that is, if n * j * k—the function returns a null pointer. Otherwise, it returns the pointer to the two-dimensional array. I he input array and j, k, and n will he passed as parameters.
[Button id=”1″]
[ad_2]
Source link
"96% of our customers have reported a 90% and above score. You might want to place an order with us."
