Is #define different from const int

If you define a variable, rather than declare it as a constant, is there any difference.

For example is A different than B?

1
2
  #define A 1000
  const int B = 1000;
Last edited on
See: 'Why would I use a const variable / const identifier as opposed to #define?'
https://isocpp.org/wiki/faq/newbie
Topic archived. No new replies allowed.