C language array of structures and pointers to structures

An array of structures defined format:

struct structure name structure variables [element size];
Example:

struct myinfo a[10];

Structure pointer to define the format:

struct name structure name * pointer;
Example:

struct myinfo *p;

Structure pointer address storage structure for the variable;

Example:

struct myinfo a;
struct myinfo *p = &a;

If the structure pointer value of the member to be removed corresponding to the structure variable, may be used:
(* structure pointer) member name;
to be abbreviated as a structure pointer -> Member Name

Guess you like

Origin blog.csdn.net/u013594490/article/details/93773600