IT Community - Software Programming, Web Development and Technical Support

difference between an enumeration and a set of preprocessor #defines?

This is a discussion on difference between an enumeration and a set of preprocessor #defines? within the C and C++ Programming forums, part of the Software Development category; What's the difference between an enumeration and a set of preprocessor #defines? Thanks, Prasath.K...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C and C++ Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-18-2007, 03:05 AM
prasath prasath is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Location: Chennai
Posts: 173
prasath is on a distinguished road
Smile difference between an enumeration and a set of preprocessor #defines?

What's the difference between an enumeration and a set of preprocessor #defines?

Thanks,
Prasath.K

Last edited by Booom : 08-18-2007 at 02:40 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-18-2007, 12:36 AM
Venkat Venkat is offline
D-Web Master
 
Join Date: Mar 2007
Posts: 350
Venkat is on a distinguished road
Thumbs up Re: What's the difference between an enumeration and a set of preprocessor #defines?

hey,

There is little difference. The C Standard states that enumerations are compatible with integral types.
__________________
Venkat
knowledge is Power
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB 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
Difference between enumeration and iterator in java? kingmaker Java Programming 3 08-08-2007 03:53 AM
What is the difference between structures and enumeration? anbuchezhians VB.NET Programming 1 07-28-2007 01:50 AM


All times are GMT -7. The time now is 09:09 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0