Challenge: Random Numbers GeneratorChallenge: Random Numbers Generator

Task

Let's create a function that will generate random numbers and return them as an array:

  1. Correctly specify function signature to return 1D dynamic array of type int.
  2. Allocate memory for the 1D dynamic array of type int inside the function.
  3. Return the function result in main() block. Specify the type of randomNumbers variable to store the pointer at the first element of the created array.

Everything was clear?

Section 3. Chapter 3
toggle bottom row