12.1 INTRODUCTION
In C, pointers were considered as a great strength of the language. Pointers allow certain (programming) tasks to be performed in limited memory space. However, over the years, the enthusiasm has subsided. For some computer scientists, the pendulum has swung to the other end. JAVA, the other Object–Oriented language, does not support pointers.
Pointers find use mainly under two categories. First when we want dynamic data structures, we have no alternative to pointers. This is the most fundamental use of pointers. In second case, when we want to allocate memory dynamically for variables or objects, we currently use pointers.
In this section, we will first introduce pointers in a general abstract way. At a later stage, we will ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access