Question: Label the elements of a three-by-five two-dimensional array sales to indicate the order in which theyre set to zero by the following program segment: 1

Label the elements of a three-by-five two-dimensional array sales to indicate the order in which theyre set to zero by the following program segment: 1 CIS113 - JAVA: Object-Oriented Programming Spring 2016

int [][] sales = int [3][5]; // 3 Rows , 5 columns

for ( int row = 0; row < sales . length ; row ++ )

{

for ( int col = 0; col < sales [ row ]. length ; col ++ ) { sales [ row ][ col ] = 0; } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!