Identifying the parts of this typedef struct in C?

Posted by Tommy on Stack Overflow See other posts from Stack Overflow or by Tommy
Published on 2012-04-05T23:24:43Z Indexed on 2012/04/05 23:29 UTC
Read the original article Hit count: 163

Filed under:
|
|
|
|

Please help me identify the parts of this typdef struct and what each part does and how it can be used:

typedef struct my_struct
{
        int a;
        int b;
        int c;
} struct_int, *p_s;

struct_int struct_array[5];

my_struct is the...?

struct_int is the...?

*p_s is the...and can be used to point to what?

struct_array is the...?

Also, when creating the array of structs, why do we use struct_int instead of my_struct ?

Thank You!

© Stack Overflow or respective owner

Related posts about c

    Related posts about linux