santhana krishnan
What is diff between pointer and references?
By santhana krishnan in OOP/OOD on Dec 15 2009
  • Pankaj  Kumar Choudhary
    Aug, 2015 29

    Pointer can refer NULL, refernce cannot be NULL. Pointer can derefernce to another address, Reference once initialized stays that way till it dies. pointer may not associate with a legitimate memory but References should associate with certain memory.

    • 1
  • Uday Gaikwad
    Aug, 2010 25

    Pointers are flexibles and references are not , because pointer can point from one location to another but references not.

    Pointers can point to the null but references can not be a null.

    we can assign pointer after creating it or later. but refences needs to be initialized at the time of creation.

    • 0
  • kannan s
    Feb, 2010 17

    1. Pointer can refer NULL, refernce cannot be NULL
    2. Pointer can derefernce to another address, Reference 
    once initialized stays that way till it dies.
    3. pointer may not associate with a legitimate memory but 
    References should associate with certain memory.
    4. pointer may not be initialized while created but 
    refernce has to intialized when it is created.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS