Computer Science, asked by gayatri3583, 4 days ago

declare a two dimensional array of 20 short data type elements​

Answers

Answered by llchummill
1

Answer:

include<stdio.h> int main(){ /* 2D array declaration*/ int disp[2][3]; /*Counter variables for the ... So the array abc[5][4] can have 5*4 = 20

Answered by nikeetajohnson16
2

Like the one-dimensional arrays, two-dimensional arrays may be initialized by following their declaration with a list of initial values enclosed in braces. Ex: int a[2][3]={0,0,0,1,1,1}; initializes the elements of the first row to zero and the second row to one. The initialization is done row by row.

Similar questions