Question: Input a random positive integer, n. Create an empty character array with a size of the inputted random positive integer, n. In the next succeeding

  1. Input a random positive integer, n.
  2. Create an empty character array with a size of the inputted random positive integer, n.
  3. In the next succeeding lines, store the n characters into the character array.
  4. Input an integer, m, for an index. This value should be from 0 to n - 1.
  5. Using your understanding on accessing array elements, access and print out the array element having the index position of the inputted random integer, m

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!