What is array and its types with example?



What is array and its types with example?..

Answer / Vipin Chaudhary

An array is a collection of elements, each identified by an array index or key. The four main types are: 1) One-dimensional Array: int arr[5] = {0, 1, 2, 3, 4}. 2) Two-dimensional Array: int arr[3][4] = {{0, 1, 2, 3}, {4, 5, 6, 7}, {8, 9, 10, 11}}.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What is linked hash set?

1 Answers  


What do you mean by external sorting?

1 Answers  


What member function places a new node at the end of the linked list?

1 Answers  


Write program for Bubble Sort ?

1 Answers  


What is impact of signed numbers on the memory?

1 Answers  


What are b tree keys?

1 Answers  


What do you mean by the term “percolate down”?

1 Answers  


What is the difference between arraylist and linkedlist?

1 Answers  


What is worst case complexity algorithm?

1 Answers  


What is complete binary tree in data structure?

1 Answers  


Which sorting algorithm is worst?

1 Answers  


List the limitations of linear probing?

1 Answers  


Categories