1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What is Null Pointer ?

Discussion in 'C' started by john125, Mar 11, 2011.

  1. john125

    john125 Banned

    Joined:
    Mar 11, 2011
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Seo
    Location:
    India
    Home Page:
    In C how you defiend null pointer----------
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    Code:
    int *nullPtr=NULL;
    
     
  3. vikky1988i

    vikky1988i New Member

    Joined:
    Apr 1, 2010
    Messages:
    25
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    Mainframes Admin. @ I | Nautix Technologies
    Location:
    chennai , Tamil Nadu ,INDIA
    Null pointers are those which points to nothing :nice:

    Data_type *pointer_name=NULL;

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

Share This Page