int *p = (int *)1; //You are forcibly assigning pointer value of 1.
//So it is pointing to memory at address 1,
//which usually is not avaliable to program
bool b = p; //Implicit conversion pointer>bool. Everything aside null pointer is true
cout << p << //Here you outputting address p is pointing to. You assigned it one two lines earlier
" " << *p << endl; //Here you are trying to dereference said pointer which lead to
//access to unavaliable memory and crash