0 votes
in C Plus Plus by (23.1k points)
Why is it necessary to give the size of an array in an array declaration in C Language?

1 Answer

0 votes
by (19.8k points)
When an array is declared, the compiler allocates a base address and reserves enough space


memory for all the elements of the array. The size is required to allocate the required space and

hence size must be mentioned.

Related questions