Diffrence between array and enum?

Status
Not open for further replies.

prem4u

Old is Gold
what is Difference between array and enum ?

practically i know it..but how to explain the difference theoretically.??
 

ayush_chh

Ambassador of Buzz
about C probably....... do we have enum any where else with diff meaning..

array stores the actual data that is provided by user. but enum stores the index whatever may be the data starting from 0....

if you want perfect definition then pls refer book.....:)
 

Pragadheesh

In the zone
Array:
-Array is a collection of data items of same data type.
-Array shares a same name with different index number, which starts from zero.

Enums:
-Enums are collection of named constants.
-Enum variables if not initialized then the variables will be initialized automatically from 0 onwards.

but why do u compare enum and array?
 
Status
Not open for further replies.
Top Bottom