Saturday, September 24, 2016

C Program to demonstrate use of null pointer.


C Program to demonstrate use of null pointer.

#include <stdio.h>
int main ()
{
       int *p1=NULL;
      
       printf("Value of *p1 = %d", p1);
             
       return 0;
}


Output of the Program:

Value of *p1 = 0





No comments:

Post a Comment