
- Forum
- Programming Talk
- C and C++
- Is there any difference
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?...
-
Is there any difference
Is there any difference between
const Exforsys = 500;
and
#define Exforsys = 500
If so what are they?
-
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

Reply With Quote





