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

Agile Method Advantages and Disadvantages

Summarize effective communication strategies in organizational hierarchies, and review the role and relevance of the organizational grapevine

Examine the collapse of Han. What factors explain how this occurred? How influential in Han Dynasty on Chinese History?