[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: macros

Whenever you compile a C program the compiler generates a table where all
the refernces of all macros are kept. so when you use MIN in your program it
first refers to MAX. The MAX refers to MIN which in turn points to 10.

Goldwyn :o)

  i wanna know about the working of preprocessors when dealing with macros
in C.
  suppose i have a macro within a macro. say
  #define MAX  MIN
  #define MIN 10

  if i now write MAX some where in my code. 10 is substituted for it. i
wanna know whether first MIN is
  substituted in place of MAX and the subsititution scanned again with 10
substituted for MIN. or directly 10
  is substituted for MAX with some earlier processing some where.

  reply soon

   ==== deepak ----

  have a great day
  ICQ 30662394

  -- A day without orange juice is like a day without orange juice.

  An alpha version of a web based tool to manage
  your subscription with this mailing list is at