I am trying to analyze some code in a C++ program (I am very new to C++), and I dont get what the following code is trying to accomplish.
Based on the threads Ive read on here, setting a pointer to deadbeef will make the pointer null. However, visual studio does not allow me to do this and gives me an error. I have no idea what the second pointer is supposed to do. Any input would be appreciated.
long* firstpointer = (long *)((void *)0);
char* secondpointer = (char*) ((void *)0);
*firstpointer = 0xDEADBEEF;
strcpy(secondpointer,"Here is some text, here is some more");