Pointer (computer Programming) - Use in Control Tables

Use in Control Tables

Control tables, that are used to control program flow, usually make extensive use of pointers. The pointers, usually embedded in a table entry, may, for instance, be used to hold the entry points to subroutines to be executed, based on certain conditions defined in the same table entry. The pointers can however be simply indexes to other separate, but associated, tables comprising an array of the actual addresses or the addresses themselves (depending upon the programming language constructs available). They can also be used to point (back) to earlier table entries (as in loop processing) or forward to skip some table entries (as in a switch or "early" exit from a loop). For this latter purpose, the "pointer" may simply be the table entry number itself and can be transformed into an actual address by simple arithmetic.

Read more about this topic:  Pointer (computer Programming)

Famous quotes containing the words control and/or tables:

    For the mother who has opted to stay home, the question remains: Having perfected her role as a caretaker, can she abdicate control to less practiced individuals? Having put all her identity eggs in one basket, can she hand over the basket freely? Having put aside her own ambitions, can she resist imposing them on her children? And having set one example, can she teach another?
    Melinda M. Marshall (20th century)

    The word unto the prophet spoken
    Was writ on tables yet unbroken;
    The word by seers or sibyls told,
    In groves of oak, or fanes of gold,
    Still floats upon the morning wind,
    Still whispers to the willing mind.
    Ralph Waldo Emerson (1803–1882)