Constants


#1

hey guys im wondering if constants are a type of variable. for example if i have pi=3.14 is it a contant or a variable? and if i have a=10 and it stays the same throught the program then is it a constant? also is there a difference beween a constant and a constant variable?i think that my first example is a constant and the second a constant variable am i right?


#2

Just names referring to values, no language support for constants. Naming convention for constants is ALL_CAPS_WITH_UNDERSCORES