My struct looks like this:
struct Node
{
int value;
struct Node *A;
struct Node *B;
struct Node *C;
struct Node *D;
struct Node *E;
struct Node *F;
struct Node *G;
struct Node *H;
struct Node *I;
};
typedef struct Node *List;
And i'm trying to access one of "subnodes" via list->znak, where 'znak' is variable. However i'm getting error:
error: ‘struct Node’ has no member named ‘znak’
I don't know how to "tell" C that char is a variable.
I've written char, because "znak" mean char in my language.
charis a reserved word, C will be angry if you use it.