Hello,
I have been tried to do this but I keep getting segmentation faults.
If I declare on main() a pointer to st, like st *s, how can I acess both variables in st?Code:typedef struct
{
int *v;
int x;
} st;
To access the regular int, I did it this way: s->x=...
How to declare v with n elements, using malloc?
Thank you.