Next:
3.3 Self pointers?
Up:
3 Pointers
Previous:
3.1 Basic pointers
3
.
2
Pointers as a field
Just as a field in a structure can be of any type, it can also be of a pointer type. The following is an example:
struct X { int i; char *name; };
In this example,
name
is a field that points to a character.
Copyright © 2006-08-28 by Tak Auyeung