Why are there defined constants and declared constants in CPP?
Posted
by Itay Moav
on Stack Overflow
See other posts from Stack Overflow
or by Itay Moav
Published on 2010-04-20T21:43:02Z
Indexed on
2010/04/20
21:53 UTC
Read the original article
Hit count: 319
Why are there two ways to "declare" constants in CPP?
Which is better, or should I write, which of them should I use when?
#define MYCON 100
const int MYCON=100
© Stack Overflow or respective owner