Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3 : 1 0 AM Tue 1 3 Feb 1 - D S Question 3 Which of the following describe matrix variable ( defined in

3:10 AM Tue 13 Feb
1-DS
Question 3
Which of the following describe matrix variable (defined in line 1):
int [][] matrix ={{7,8,9},{4,5,6},{1,2,3}};
int row = matrix.length;
for (int i=0;i row; i++)1
for (int j=i;j row; j++)1
int temp =matrix[i][j];
matrix[i][j]=matrix[j][i];
matrix[j][i]= temp;
}
}
for (int i=0;i matrix.length; i++(
System.out.print (matrix[i][j]+",");
}
System.out.print ("");
}
matrix is a reference variable for a two dimensional array that has 3 rows and 3 columns
matrix is a reference variable for a one dimensional array with 3 elements
matrix is a primitive integer type
matrix is a reference variable for a two dimensional array that has 3 rows and no columns
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

6th Edition

1943153035, 978-1943153039

More Books

Students also viewed these Databases questions

Question

What are two new ideas in motivation that managers are using?

Answered: 1 week ago

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago