I'm making a program for image treatment and i have this variables initialized:
int minR, minG, minB = 255; int maxR, maxG, maxB = 0;
printf("%d", maxG);
And when I print this, instead of getting a 0 as it should be, I get 16384 as the value of maxG. Yet, if I do this:
int minR, minG, minB = 255; int maxR, maxB = 0;
int maxG = 0; printf("%d", maxG);
Then everything goes OK.
Does anyone know why this could be? Thank you.