Computer Science, asked by TbiaSamishta, 1 year ago

Do the two definitions allocate the same number of cells?justify your answer?
char Characters[1000];
int numbers[10][1000];

Answers

Answered by Secondman
0

"No, the two definitions do not allocate the same number of cells because char Characters[1000] is the single dimensional array that allocates 1000 elements in the array with ""character"" data type.

But int numbers[10][1000] is two dimensional array containing 10 × 1000 elements in the array and it is integer data type.

Hence, there is difference in the allocation of cells in the array."

Similar questions