Why is it necessary to give the size of an array in an array declaration?

Why is it necessary to give the size of an array in an array declaration?

When an array is declared, the compiler allocates a base address and reserves enough space in memory for all the elements of the array. The size is required to allocate the required space and hence size must be mentioned. 

Comments

Popular posts from this blog

What is JAD and how are users involved? What are advantages and disadvantages of JAD?

Describe at least three of the general information skills essential for all business careers.

Why do firms need to invest in net working capital?