What is NULL
pointer?
Explanation:
Literal meaning of
NULL pointer is a pointer which is pointing to nothing. NULL pointer points the
base address of segment.
Examples of NULL pointer:
1. int *ptr=(char *)0;
2. float *ptr=(float *)0;
3. char *ptr=(char *)0;
4. double *ptr=(double *)0;
5. char *ptr=’\0’;
6. int *ptr=NULL;
Blog Author: Vijay Kumar
No comments:
Post a Comment