Friday 8 June 2018

Null Pointer Program

#include<stdio.h>

int main()
{
    int *ptr = NULL;    // ptr is a NULL pointer
    printf("\n\n The value of ptr is: %x ", ptr);
      return 0;
}
Output: The value of ptr is: 0

No comments:

Post a Comment