COMPUTER SCIENCE AND ENGINEERING
DATA STRUCTURES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]


One Dimensional


Two Dimensional


Three Dimensional


None of the above

Detailed explanation1: You can think the array as a table with 3 rows and each row has 4 columns. Similarly, you can declare a threedimensional (3d) array. For example, float y[2][4][3];
Detailed explanation2: A twodimensional array is a data structure that contains a collection of cells laid out in a twodimensional grid, similar to a table with rows and columns although the values are still stored linearly in memory.
Detailed explanation3: Here i and j are the size of the two dimensions, i.e i denotes the number of rows while j denotes the number of columns. Example: int A[10][20]; Here we declare a twodimensional array in C, named A which has 10 rows and 20 columns.
Detailed explanation4: A twodimensional array in C can be thought of as a matrix with rows and columns. The general syntax used to declare a twodimensional array is: A twodimensional array is an array of several onedimensional arrays. Following is an array with five rows, each row has three columns: int my array[5][3];