Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 06-10-2008, 06:42 PM   #1 (permalink)
Old is Gold
 
prem4u's Avatar
 
Join Date: Sep 2006
Posts: 84
Question Diffrence between array and enum?


what is Difference between array and enum ?

practically i know it..but how to explain the difference theoretically.??
__________________
Ab kya likhe....??
prem4u is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 06-10-2008, 06:53 PM   #2 (permalink)
Excessive happiness
 
furious_gamer's Avatar
 
Join Date: Jun 2008
Location: Bangalore
Posts: 2,974
Default Re: Diffrence between array and enum?

Why you compare array with enum? Any reason...
__________________
My First Android phone : Samsung Galaxy SL i9003 - Rooted & Gingerbread XXKPQ
Updated : superteekz_V2 ROM for XXKPQ.

PS Request
furious_gamer is online now  
Old 06-10-2008, 06:53 PM   #3 (permalink)
CAFEBABE
 
chandru.in's Avatar
 
Join Date: Mar 2008
Location: Bangalore
Posts: 474
Default Re: Diffrence between array and enum?

Which language are you talking about?
__________________
Chandru

http://tuxychandru.blogspot.com
chandru.in is offline  
Old 06-10-2008, 08:51 PM   #4 (permalink)
In The Zone
 
ayush_chh's Avatar
 
Join Date: Nov 2005
Location: Bangalore
Posts: 487
Default Re: Diffrence between array and enum?

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.....
__________________
eXPerience is what a MAN learn's fROM.....
ayush_chh is offline  
Old 06-10-2008, 11:12 PM   #5 (permalink)
CAFEBABE
 
chandru.in's Avatar
 
Join Date: Mar 2008
Location: Bangalore
Posts: 474
Default Re: Diffrence between array and enum?

Java does support enums. Java's enums are very very different from C's, so wanted to comfirm.
__________________
Chandru

http://tuxychandru.blogspot.com
chandru.in is offline  
Old 07-10-2008, 06:44 PM   #6 (permalink)
Old is Gold
 
prem4u's Avatar
 
Join Date: Sep 2006
Posts: 84
Default Re: Diffrence between array and enum?

Quote:
Originally Posted by chandru.in View Post
Which language are you talking about?
Sorry i didnt mentioned..
Talking about C language..
__________________
Ab kya likhe....??
prem4u is offline  
Old 18-11-2008, 05:32 AM   #7 (permalink)
In The Zone
 
Pragadheesh's Avatar
 
Join Date: Jul 2006
Location: Coimbatore
Posts: 403
Default Re: Diffrence between array and enum?

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?
Pragadheesh is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Want to know the diffrence? ashnu_tnj QnA (read only) 1 03-06-2008 02:25 PM
Passing enum as parameter (vb.net) puneet.darji Programming 1 19-02-2008 01:40 PM
OEM and Sony Boxed dvd writers??what's the diffrence???here's what i found out. tango_cash QnA (read only) 4 16-11-2006 01:09 PM
diffrence ???? bharat Gamerz 8 11-02-2006 09:35 PM
diffrence between GNOME and KDE vandit Open Source 20 08-09-2005 10:46 PM

 
Latest Threads
- by clinton
- by soumya
- by Sujeet
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 11:14 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2