C - How to manipulate typedef structure pointer?
- by AbhishekJoshi
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.