top of page
Frequently Asked C Language Interview Question & Answers
What is null pointer?
A Null pointer is a pointer which cannot point to anywhere in the program, but uninitialised pointer can point to anywhere in the users' program. In C, if the pointer tried to access 0th location, the operating system kills the running program because the operating system does not allow to access 0th value.
Example :
-
Integer pointer : int *ptr=(char *);
-
Float Pointer : float *ptr=(float *);
-
Character Pointer : char *ptr=(char *);
bottom of page