Hello everyone,
I have written a sample program to print the values of the static variables but the output are not printed properly? As per my code the value for the variable ActiveState = 0 and state = 8, but in terminal window the value printed is same? I have seen the memory also none of the values are there to the relevant memory address of the variable ActiveState. I have attached the screen of the project. Could anyone explain me?