I have a program in C++. I did something like this:
#include <iostream>
int main() {
unsigned x,cifra,cifraOld;
std::cout<<cifra;
}
For some reason, the output was 8
. Can someone tell me if 8
is the default value for unsigned variable? If not, why is this happening to me?
Changing the line to unsigned x,cifra=0,cifraOld;
will output 0
.