Exforsys
+ Reply to Thread
Results 1 to 2 of 2

Is there any difference

This is a discussion on Is there any difference within the C and C++ forums, part of the Programming Talk category; Is there any difference between const Exforsys = 500; and #define Exforsys = 500 If so what are they?...

  1. #1
    rachelle is offline Member Array
    Join Date
    Apr 2006
    Answers
    97

    Question Is there any difference

    Is there any difference between

    const Exforsys = 500;

    and

    #define Exforsys = 500

    If so what are they?


  2. #2
    zsk_00 is offline Member Array
    Join Date
    May 2006
    Answers
    37
    define is directive for compiler. While compiling, when compiler sees Exforsys, it replaces it with the given value and then compiles it.

    const is just like anyother variable (well, you can't change it


Latest Article

Network Security Risk Assessment and Measurement

Read More...