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

Why have accounting software packages been designed with separate transaction modules?

Provide three ways in which information technology can impact managers and three ways in which it can impact non-managerial workers.

You are a marketing manager for a national movie theater chain. Give an example of data that your department could use for creating meaningful information. What type of information could that data produce?