If I have a number of variables that are not going to change, is it better to declare them like this
or like this?
Are there any differences/optimizations that would make one preferable to the other?
Thanks.
Code:
enum EnumName {
var1=1,
var2,
var3
};
or like this?
Code:
const int var1=1;
const int var2=2;
const int var3=3;
Are there any differences/optimizations that would make one preferable to the other?
Thanks.