OiO.lk Blog C# I just don't understand this pointer case
C#

I just don't understand this pointer case


This is my code:

int *p;
p = 4;
printf("p is %p\n", p);
free(p);
// Need p=NULL, but I don't
int *q;
q = 5:
printf("q is %i", *q);

Then the error comes.
I just need an explanation for it.



You need to sign in to view this answers

Exit mobile version