DIGIT-ARC read-only archive · snapshot: July 23, 2026

Diffrence between array and enum?

7 posts · originally from https://geek.digit.in/community/threads/diffrence-between-array-and-enum.99231/

prem4u
prem4u Original post #1
Oct 6, 2008 at 6:42 PM
what is Difference between array and enum ?

practically i know it..but how to explain the difference theoretically.??
furious_gamer
Oct 6, 2008 at 6:53 PM
Why you compare array with enum? Any reason...
C
Oct 6, 2008 at 6:53 PM
Which language are you talking about?
ayush_chh
Oct 6, 2008 at 8:51 PM
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.....:)
C
Oct 6, 2008 at 11:12 PM
Java does support enums. Java's enums are very very different from C's, so wanted to comfirm.
Pragadheesh
Nov 18, 2008 at 5:32 AM
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?