Computer Science, asked by happyanuja26, 4 months ago


Maximum number of elements in the
array declaration int a[5][8] is​

Answers

Answered by aditikanwadkar
0

Answer:

126

Explanation:

126 Maximum number of elements in the array declaration into a[5][8]

Mark me Brainliest!!

Answered by anjalin
0

The maximum number of elements in the array declaration int a[5][8] is​ 40.

Explanation:

  • An array is referred to as a collection of homogenous elements.
  • For eg. an array of 10 integer values can be declared as int array[10];

Here,

  • Given declaration is an example of a 2D array.
  • A 2D array is nothing but a matrix that stores the information in a two-dimensional structure, i.e. row and column.
  • For eg. an array with i rows and j columns can be declared as          int array[i][j]; that stores total i*j elements in it.
  • So, given declaration int a[5][8] has 5 rows and 8 columns.
  • That can store a maximum of 40 elements in it.

Hence, The maximum number of elements in the array declaration int a[5][8] is​ 40.

Similar questions