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:
“Could it not be that just at the moment masculinity has brought us to the brink of nuclear destruction or ecological suicide, women are beginning to rise in response to the Mothers call to save her planet and create instead the next stage of evolution? Can our revolution mean anything else than the reversion of social and economic control to Her representatives among Womankind, and the resumption of Her worship on the face of the Earth? Do we dare demand less?”
—Jane Alpert (b. 1947)
“All my life I have said, Whatever happens there will always be tables and chairsand what a mistake.”
—Elizabeth Bowen (18991973)