1.   Given the following array declaration: int A [ ][ ]={{13, -23}, {3, 80} ,{91,55} }; Write segment of code that will make the last element equal to 14? Answer: 2.   Given the following arrays: int arry1 [ ]= {20, -5, 23, 4}; int arry2[4 ] ; If you write: arry2=arry1, will the two arrays become similar? (explain) Answer: 3.   What is the number of rows and number of columns of array A declared in question 1?

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 2RQ
icon
Related questions
Question

 

 

1.   Given the following array declaration:

int A [ ][ ]={{13, -23}, {3, 80} ,{91,55} };

Write segment of code that will make the last element equal to 14?

Answer:

2.   Given the following arrays:

int arry1 [ ]= {20, -5, 23, 4};

int arry2[4 ] ;

If you write: arry2=arry1, will the two arrays become similar? (explain)

Answer:

3.   What is the number of rows and number of columns of array A declared in question 1?

Answer:

4.   Consider the arrays in Question 2. List the elements of arry1[ ] after doing the following code:

arry1[1]+=2;

Answer:

5.   Declare a 2D array with 5 rows and 6 columns?

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT