declare a two dimensional array of 20 short data type elements
Answers
Answered by
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
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
Science,
2 days ago
Math,
4 days ago
Social Sciences,
4 days ago
Math,
8 months ago
Social Sciences,
8 months ago