1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Pointers

Discussion in 'C' started by boschow, Jul 2, 2007.

  1. boschow

    boschow New Member

    Hi,
    i just wanted to know, what are pointers used for?
    when do we use pointer to a symbol?
    when do we use pointer to a function?
    when do we use pointer to a pointer . .. ?

    Thanks for your time and help,
    Best regards
    BoSCHoW
     
  2. shabbir

    shabbir Administrator Staff Member

    Mainly pointers are used for passing the address of the variables so the update in a function remains when the function is out of scope.
    I assume you meant here variable and when we need the address of the variable.
    I normally avoid using this but when we don't know which exact function to be called but know the type of the function. Is used for event handling where we don't know what is the event handler that will be assigned to the pointer but if its assigned it will have some standard signature.
    As and when needed and in interviews.
     

Share This Page