C - How to manipulate typedef structure pointer?
Posted
by
AbhishekJoshi
on Stack Overflow
See other posts from Stack Overflow
or by AbhishekJoshi
Published on 2012-09-09T02:28:55Z
Indexed on
2012/09/09
3:38 UTC
Read the original article
Hit count: 70
typedef struct
{
int id;
char* first;
char* last;
}* person;
person* people;
Hi. How can I use this above, all set globally, to fill people with different "person"s? I am having issues wrapping my head regarding the typedef struct pointer. I am aware pointers are like arrays, but I'm having issues getting this all together...
I would like to keep the above code as is as well.
Edit 1: char first should be char* first.
© Stack Overflow or respective owner