why is the garbage value for an integer so un-integerly huge : <p>Today while experimenting with a C++ program i tried to get a random variable from a garbage value with code that read</p>

<pre><code>int main(){
    int x,r;
    r = x%7
    cout &lt;&lt; r;
}
</code></pre>

<p>needless to say this method didn't work since x was being used without initialization however when I looked at he variable watch I saw that the garbage value of x was -846.... and the same value for r. This confused me as to how could an integer hold such insanely huge garbage values. Normally C++ integers are ±32676 however the insane 7+ digit value I saw was never in this range. What could be the reason for this very large value if integers can hold only small values</p>
