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 15:00
Plz ( which is an example of a good url?
Answers: 1
question
Computers and Technology, 24.06.2019 00:40
To maintain clarity and focus lighting might be needed
Answers: 2
question
Computers and Technology, 24.06.2019 23:00
Why is it preferable to code web pages in html format? a. to create more lines code b. to apply general formatting rules c. to display properly as search results in all browsers d. to add meaning to the document
Answers: 1
question
Computers and Technology, 25.06.2019 08:00
Aresearcher wants to do a web-based survey of college students to collect information about their sexual behavior and drug use. direct identifiers will not be collected; however, ip addresses may be present in the data set. risk of harm should be evaluated by: solely by the magnitude or severity of expected harm. both the magnitude (or severity) and the probability (or likelihood) of harm. solely by the probability of expected harm. neither the magnitude or probability of harm.
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
Advanced Placement (AP), 27.10.2020 17:50