subject

Suppose that sales is a two-dimensional array of 10 rows and 7 columns wherein each component is of the type int , and sum and j are int variables.

which of the following correctly finds the sum of the elements of the fifth row of sales? 1.sum = 0; for(j = 0; j < 10; j++)sum = sum + sales[5][j];

2.sum = 0; for(j = 0; j < 7; j++)sum = sum + sales[4][j];

3.sum = 0; for(j = 0; j < 10; j++)sum = sum + sales[4][j];

4. sum = 0; for(j = 0; j < 7; j++)sum = sum + sales[5][j];

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:30
What is the power dissipated by a resistor with a current of 0.02 a and a resistance of 1,000 ? a. 200 w b. 20 w c. 0.4 w d. 4 w
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
Sports and entertainment class, your goal is to increase attendance and make a profit for a game by getting your team on a winning track with total salaries less than $3,000,000
Answers: 3
question
Computers and Technology, 24.06.2019 00:30
Match the sentence fragment in the first column with the appropriate ending in the second column. a little per favore?
Answers: 1
question
Computers and Technology, 24.06.2019 10:30
This device directs network traffic. bridge hub nic repeater router switch
Answers: 3
You know the right answer?
Suppose that sales is a two-dimensional array of 10 rows and 7 columns wherein each component is of...
Questions
question
History, 05.10.2020 06:01
question
Mathematics, 05.10.2020 06:01
question
Mathematics, 05.10.2020 06:01
question
Biology, 05.10.2020 06:01
Questions on the website: 13722360