Why 3261898? cin receiving 'x' as input

I typed an ‘x’ at the first input of the 3 numbers guess and the first variable was assigned with the value 0. But the other ones were assigned with 3261898. Why this specific number?

You are most likely reading an uninitialised variable. Reading the value of which is “undefined behaviour”, anything can happen.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms