0
Why is it that the output of the variable is 4 yet it is initialized 50
2 Answers
+ 1
I'm guessing you did something like this:
int x = 50;
std::cout << sizeof(x);
It's because int has a size of 4 bytes. Thats what sizeof does, it does not get the value of x.