Computers and Technology

9.10: reverse arraywrite a function that accepts an int array and the array ’s size as arguments . the function should create a copy of the array , except that the element values should be reversed in the copy. the function should return a pointer to the new array . demonstrate the function by using it in a main program that reads an integer n (that is not more than 50) from standard input and then reads n integers from a file named data into an array . the program then passes the array to the your reverse array function, and prints the values of the new reversed array on standard output , one value per line. you may assume that the file data has at least n values .prompts and output labels. there are no prompts for the integer and no labels for the reversed array that is printed out. input validation. if the integer read in from standard input exceeds 50 or is less than 0 the program terminates silently. the language is c++

answer
Answers: 3

Similar questions

Do you know the correct answer?
9.10: reverse arraywrite a function that accepts an int array and the array ’s size as arguments ....

Questions in other subjects:

Konu
Mathematics, 30.03.2020 23:10
Konu
English, 30.03.2020 23:10
Konu
Biology, 30.03.2020 23:10