subject

Langauge: C++Make absolutely no changes to main(). Change function backwards so that the elements of the array are swapped in order for elements to be in reverse order. That is, arr[0] will be 16, arr[1] will be 5, etc. But backwards() must work no matter what values are in the array and for all values passed in for number. After it is corrected this program should output:16531782#include using namespace std;void backwards(int [], int);int main(){int arr[] = {2,8,17,3,5,16}; int i;backwards(arr,6);for (i = 0; i< 6; i++)cout<

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:30
Agood flowchart alludes to both the inputs and outputs you will need to receive and give to the user. true or false?
Answers: 3
question
Computers and Technology, 22.06.2019 10:00
Which of the following is true of operations within a spreadsheet program’s built-in functions? a. operations within parentheses, then multiplication and division, and then addition and subtraction are computed. b. operations within parentheses, then addition and subtraction, and then multiplication and division are computed. c. multiplication and division, then addition and subtraction, and then operations within parentheses are computed. d. addition and subtraction, then multiplication and division, and then operations within parentheses are computed
Answers: 2
question
Computers and Technology, 22.06.2019 15:30
Why would a programmer use the logical operator and in an if statement? a: when an action is to be taken that requires both conditions to be falseb: when an action is to be taken that requires both conditions to be truec: when an action is to be taken that requires the first condition to be falsed: when an action is to be taken that requires the second condition to be truei took the test and the answer is b.
Answers: 3
question
Computers and Technology, 22.06.2019 15:30
Which of the following examples has four beats in each measure?
Answers: 2
You know the right answer?
Langauge: C++Make absolutely no changes to main(). Change function backwards so that the elements of...
Questions
question
English, 06.05.2020 05:18
question
Mathematics, 06.05.2020 05:18
question
Mathematics, 06.05.2020 05:18
Questions on the website: 13722360