Can anyone teach me how to code this program

Generate 20 random numbers using rand() built-in function and store them in 4x5 array.
Ensure that the 4x5 array is created dynamically using smart pointers. Now write a function
that takes a 2D array as a parameter and returns the third highest number in the array.
What have you tried? What don't you understand?
sir,problem was that how to to pass 2D array which is created my smart pointer dynamically in function . Fortunately i found solution
Topic archived. No new replies allowed.