What is the two-dimensional array?



What is the two-dimensional array?..

Answer / Prashant Srivastava

A two-dimensional array, often referred to as a matrix or table, is an array of arrays. It has multiple layers or levels, where each level represents a different dimension. Each element can be accessed using two indices, indicating its row and column position.nnExample:n```javascriptnlet arr2D = [[0, 1], [2, 3]];nconsole.log(arr2D[0][0]); // 0nconsole.log(arr2D[1][1]); // 3```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What is the difference between a stack and an array?

1 Answers  


How many different trees are possible with 10 nodes ?

1 Answers  


What is the type of the algorithm used in solving the 8 Queens problem?

1 Answers  


What is the time complexity of hashmap get () and put () method?

1 Answers  


Why is selection sort used?

1 Answers  


What is the minimum number of nodes in an avl tree of height h?

1 Answers  


What are different sorting algorithms?

1 Answers  


Is quicksort a stable sorting algorithm?

1 Answers  


Devise a program to sort an array using bubble sort.

1 Answers   Wipro,


Are duplicates allowed in list?

1 Answers  


What are the complexity of binary search?

1 Answers  


What is difference between array and arraylist? When will you use array over arraylist?

1 Answers  


Categories