Links should be used when there is such possibility, and pointers – when it is necessary. Links are usually used when you do not need to point to different objects. Pointers are often used when you need to return an exception from the function, for example a null pointer (NULL).
Comments
Leave a comment