I have a struct like so:
In another function, I have declared a variable k.Code:struct array { char *array; AR next; }
To increment the array index can I do:
?Code:current->array[k];
I'm getting segmentation faults, so I'm thinking it's probably to do with that, so maybe I need to declare k in the struct and call it like this?
?Code:current->array[current->k++];
But then when I do that it says I haven't declared next and k, which is strange =(