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
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.