what is wrong in this piace of code?

#include <iostream>

using namespace std;

int main()
{
long **d1;
for (int i=0;i<10;i++)
for (int j=0;j<10;j++)
{
d1[i][j]=0;
cout<<d1[i];
}
}
d1 points to nowhere.
the build is ok. but while calculating when i became 1 it crash.
what i have to do for creating a matrix of zero using pointer **d1
ok thanks
Topic archived. No new replies allowed.