Code: Select all
const a = 1;
int b = a;
Code: Select all
int b = 1;
P.S. I only care about using the variable. The "loading" of the constant isn't my concern. I probably didn't express this very well. I mean that I don't care about the time that "loading" the constant takes.
P.S. 2 It's C# but I believe it is the exact same code in C/C++.
Advertising






