ProAnswers.org

What is difference between uninitialized pointer and null pointer?

1 Like

An uninitialized pointer is a pointer which points unknown memory location while null pointer is pointer which points a null value or base address of segment.

eg:
int *p; ////Uninitialized pointer
int *q= (int *)0; //Null pointer