3 ms·
If you refer to that z somewhere, depending on its value and use it might exist as a separate value in the executable, as part of one or more instructions, or n
by Someone 5y ago
If you refer to that z somewhere, depending on its value and use it might exist as a separate value in the executable, as part of one or more instructions, or not at all (e.g. if you use that z only in if(z) phrases)
> This ain't right.
That’s an opinion that’s not universally shared.
One could similarly write
These refer to variables that can be changed in memory when the program is running:
int a;
extern int b;
static int c;
volatile int d;
And this refers to something that cannot be changed at runtime:
const int z = 1;
This ain't right.
or variations on that theme with unsigned, values vs pointers, int vs long, etc. In all cases, that “this ain’t right” doesn’t logically follow. Why would yours?