Paul and Toby are correct. Constants do not "use memory" as they are hardcoded into your program as immediate values at compile time - that's why you can't change them at runtime.
More importantly however constants do not have to be seperately fetched from memory, but are loaded into the CPU instruction pipeline, during the initial instruction fetch.
Check the assembly output if you're in doubt.
More importantly however constants do not have to be seperately fetched from memory, but are loaded into the CPU instruction pipeline, during the initial instruction fetch.
Check the assembly output if you're in doubt.