LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Null Pointer (https://www.linuxquestions.org/questions/programming-9/null-pointer-217228/)

vijeesh_ep 08-13-2004 02:01 PM

Null Pointer
 
What does the error "Null Pointer Assignment" mean ? what causes it?.

itsme86 08-13-2004 02:11 PM

I believe it's usually caused when you have something like this:
Code:

{
  int *ptr = NULL;

  *ptr = 5;
}


vijeesh_ep 08-13-2004 02:43 PM

Actually I want to know What causes "Null Pointer Assignment "error.plz explain in plain english

itsme86 08-13-2004 02:51 PM

Then try doing a search. Learn how to use google. And also try to be a little more specific with your questions. Such as: When did you get the error? What OS are you using? What compiler are you using? etc.

Here. I did the work for you: http://www.faqs.org/faqs/msdos-progr...ection-25.html


All times are GMT -5. The time now is 03:29 AM.