|
(a)
typedef struct _def_t
{
struct _def_t *next;
struct _def_t *prev;
char name[8];
short loval;
short hival;
} def_t;
typedef struct _xyz_t {
long i;
float f;
short s[2];
unsigned char b[8];
} xyz_t;
typedef struct _abc_t {
def_t *def;
xyz_t *xyz;
short ndef;
} abc_t;
|
(b)
| |
Figure 1: Many software developers will define data structures, as shown in (a). The design of the software and
interrelationship of the data structures is not obvious unless the code is accompanied by a data structure diagram, as
shown in (b).
|
|
Back
|
|
|
|
|
|