Decimal itself converts to hexadecimal
<p>I have small issue. I create 2D int array. When I cout it I get hexadecimals numbers insted of decimals. I'm using Dev C++.</p>

<pre><code>#include &lt;cstdlib&gt;
#include &lt;iostream&gt;

using namespace std;

int main()
{
    const int max=9;
    int ar[max][max]={
        {0,6,0,0,2,0,0,4,0},
        {5,0,0,3,0,0,0,0,0},
        {0,8,0,0,1,0,0,0,0},
        {6,0,0,0,0,7,0,0,0},
        {0,3,7,0,0,0,2,8,0},
        {0,2,0,8,0,0,0,3,0},
        {0,0,0,0,0,0,0,0,0},
        {7,0,0,4,0,0,0,0,1},
        {0,0,0,0,6,0,0,2,0}};

    for (int i=0;i&lt;max;i++){
        for(int j=0;j&lt;max;j++){
            cout&lt;&lt;ar[i,j]&lt;&lt;" ";
        }
        cout&lt;&lt;"\n";
    }

    system("pause");
    return 0;
}
</code></pre>

<p>In return I get this <a href="http://www.dropmocks.com/mf8wl" rel="nofollow">http://www.dropmocks.com/mf8wl</a></p>
