I have a file file.c where I define (at the beginning of the function within file.c)
Code:
    static char sensor = EMPTY_MEMORY;
Within this file sensor gets assigned a value other than above. My question is when I leave this file and go back to main.c, then re-enter this file will sensor retain the last value or will it get re-initialized to EMPTY_MEMORY again?

Thanks