I'm studying some C code just for understanding and I found a pointer with an index between [] like it was an array (as " pointer[i] "); I don't understand what does it mean or how does it work
this is a piece of the code where i found it:
struct turing_machine_t{
struct linked_list_t*** transitions;
bool* acceptors;
unsigned int max_steps;
unsigned int num_states;
};
void delete_turing_machine(struct turing_machine_t* tm){
int i,j;
for(i = 0; i < tm->num_states; i++){
if(tm->transitions[i] != NULL){
for(j = 0; j < ALPHABET_SIZE; j++){
struct linked_list_t* tl = tm->transitions[i][j];
//after here there are just some free
It is from a turing machine simulator but that doesn't matter really; If I'm correct, transition is a triple pointer, but what does it mean transition[i] and transition[i][j]? If it isn't an array what is the meaning of those indexes?