Program to explain dynamic initialization of a variable
Dynamic initialization of a variable means introducing variable at run time. Just before executing the program we initialize that respective variable . Here in this program 'a' is initialized just before the end of the program.
C-Array
An array is a collection of elements of the same type that are referenced by a common name. Compared to the basic data type (int, float & char) it is an aggregate or derived data type. All the elements of an array occupy a set of contiguous memory locations. and An array may be initialized at the time of declaration. Giving initial values to an array. Initialization of an array may take the following form,