[Question] NULL pointers...
So i learned about pointers a while back, and i figured since i was concentrating on rereading tutorials before i learn windows API and go ahead and tackle a 1500 page book i would look over them again, seeing as they're essential for hacking.
I came across null pointers, and they were explained in 4 lines. I know that in order to create a pointer that basically points to nothing you just make the value of the address its pointing to 0 (int *ptr = 0
or use the NULL keyword, which i didnt bother to learn how to use.
The tutorial also said that null pointers are useful in many situations, although i'm not quite sure when they would be used...
so my question isn't necessarily about how to incorporate null pointers in my code, but where i would use them... like in what situation would i need to make pointers that point to nothing....?
thanks :x
I came across null pointers, and they were explained in 4 lines. I know that in order to create a pointer that basically points to nothing you just make the value of the address its pointing to 0 (int *ptr = 0
or use the NULL keyword, which i didnt bother to learn how to use.The tutorial also said that null pointers are useful in many situations, although i'm not quite sure when they would be used...
so my question isn't necessarily about how to incorporate null pointers in my code, but where i would use them... like in what situation would i need to make pointers that point to nothing....?
thanks :x

