New course! Every coder should learn Generative AI!
Try a free lesson+ 2
Null Pointer
What is Null Pointer in C Programming
1 Answer
+ 2
1. Null pointer is the condition when OS fails to allocate memory to the pointer at runtime.
2. We can also create Null pointer while declaration by assigning a NULL value to the pointer such as
int *ptr=NULL;