why this program crashes?. what is the fix?.
#include <iostream>
typedef struct test
{
int array[10];
}test;
static test *p;
int main(int argc, char* argv[])
{
p->array[0] = 10;
std::cout << p->array[0] << std::endl;
return 0;
}