python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Optimizing away static variable / passing by reference
In this question Will a static variable always use up memory? it is stated that compilers are allowed to optimize away a static variable if the address is never taken, e.g. like following:
void f() {
...

tommsch
Votes: 0
Answers: 2
c programming using a static variable and then pointing to it ? possible?
In c when creating and returning the address in a static variable inside a function would it be the same as
initializing a simple
int sNum2 = 0 ; int * temp = &sNum2;
? static will basically have ...

user14570759
Votes: 0
Answers: 3