Thread: Difference between Enums and #define preprocessor

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    13

    Difference between Enums and #define preprocessor

    Hi
    Can any one tell me the difference between preprocessor macros like
    #define and enum;
    If i want to define MAX_LIMIT=100 as preprocessor macro as
    Code:
    #define MAX_LIMIT 100;
    or if i define
    Code:
    enum {MAX_LIMIT=100};
    then what is the basic difference?
    Last edited by kollurisrinu; 12-05-2007 at 06:54 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Code::Blocks doesn't like my enums and typedefs
    By muehl in forum C++ Programming
    Replies: 19
    Last Post: 02-12-2009, 10:48 AM
  2. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM