char variables not initializing correctly

I have a function in which I declare two variables as follows:

unsigned char voltage = 0;
unsigned char test = 0;

When I run the code in the debugger, these variables are initialized to random numbers. What is the problem?

Parents Reply Children
No data
More questions in this forum