Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualAardvajk

Posted 08 July 2012 - 02:36 AM

#define: constant
global variable: variable


*Sigh*

const int i = 123; // constant
int i = 123; // global variable
#define i 123 // technically creates a literal, not a constant, everywhere it is replaced, with no meaningful name for the compiler to use

#1Aardvajk

Posted 08 July 2012 - 02:35 AM

#define: constant
global variable: variable


*Sigh*

const int i = 123; // constant
int i = 123; // global variable
#define x 123 // technically creates a literal, not a constant, everywhere it is replaced, with no meaningful name for the compiler to use

PARTNERS