hai,
will someone please explain me what is null pointer assignment error.different persons say different reasons.some says the following code would generate null pointer assignment error.
#include<stdio. h>
#include<conio. h>
main()
{
int *p=NULL;
*p=10
getch();
}
as we try to access the memory 0 it causes an error.
but in my system i dont get this error.
i am using turbo c++ compiler.(windo w7 os)
will someone please explain me what is null pointer assignment error.different persons say different reasons.some says the following code would generate null pointer assignment error.
#include<stdio. h>
#include<conio. h>
main()
{
int *p=NULL;
*p=10
getch();
}
as we try to access the memory 0 it causes an error.
but in my system i dont get this error.
i am using turbo c++ compiler.(windo w7 os)
Comment