Site icon Learn Web Development & Programming, Artificial Intelligence, WordPress, Shopify Articles

What are merits and demerits of array in c?

Merits:

(a) We can easily access each element of array.

(b) Not necessity to declare too many variables.

(c) Array elements are stored in continuous memory location.

Demerit:

(a) Wastage of memory space. We cannot change size of array at the run time.

(b) It can store only similar type of data.

Exit mobile version