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
- 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 lines, store the n characters into the character array.
- Input an integer, m, for an index. This value should be from 0 to n - 1.
- 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
