User Tools

Site Tools


opus:fall2012:rrichar8:datapart1

data Keyword 1

pointer (what is it, declaration of).

Definition

To put it in simple terms, a pointer is a memory address. The first thing you must do with a pointer, is to declare a pointer variable. Set it to point somewhere, and finally manipulate the value that it points to.

A simple pointer declaration can be:

int *ip;

The asterisk used means that the “ip”, the variable that you are declaring, is not of the “int” type, but a type of “pointer to an int” type.

References

List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).

  • Reference 1
  • Reference 2
  • Reference 3
opus/fall2012/rrichar8/datapart1.txt · Last modified: 2012/09/11 12:11 by rrichar8