ABSTRACT

This chapter considers pointers to numeric variables to introduce computer science and IT students to the pointer concepts. It investigates the close relationship between pointers and arrays. The computer science and IT students learns how to use arrays of pointers and pointers to functions. A pointer variable is a variable that can hold a memory address. When a variable is declared, the compiler reserves the required consecutive bytes to store its value. If a variable occupies more than one byte, the variable's address is the address of the first byte. The compiler associates the name of a variable with its memory address. In most modern computers, the main memory consists of millions of consecutively numbered memory cells where each cell stores eight bits of information and is identified by a unique number, called memory address.