#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    142
    Rep Power
    2

    Why a constant macro cannot be changed during execution.


    I learned that constant macros are replaced during preprocessing.
    I also learned that constant macros cannot changed by the program during execution.
    Is this because the file received by the the time the linker receives the file, the file is converted to a .c file to a .obj file, and has all its constant macros replaced?
  2. #2
  3. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,316
    Rep Power
    7170
    Yes, macro replacement occurs before execution.
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around

IMN logo majestic logo threadwatch logo seochat tools logo