What is Null Pointer ?

john125's Avatar
Banned
In C how you defiend null pointer----------
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
Code:
int *nullPtr=NULL;
0
vikky1988i's Avatar, Join Date: Apr 2010
Go4Expert Member
Null pointers are those which points to nothing

Data_type *pointer_name=NULL;

Where NULL is a MACRO mostly Zero or -1 according to the configuration of the compiler u use