M
Marcia Hon
Hi,
I have a function that has a counter variable that I increment. It
increments after a function call within the first function. Somehow,
when I return from the second function to increment the counter, I
cannot access the memory of the variable.
Here is the functions:
function1(){
int variableCounter = 0;
function2();
variableCounter++;
return;
}
Please your help would be very much appreciated.
Thanks,
Marcia
I have a function that has a counter variable that I increment. It
increments after a function call within the first function. Somehow,
when I return from the second function to increment the counter, I
cannot access the memory of the variable.
Here is the functions:
function1(){
int variableCounter = 0;
function2();
variableCounter++;
return;
}
Please your help would be very much appreciated.
Thanks,
Marcia