I am trying to create a struct that has 2 pointers of type struct nodo
defined above the code. But it gives me the error:
expected ':', ',', ';', '}' or 'attribute' before '=' token lista dati_mappa=NULL;".
Here is the code:
typedef int data;
struct nodo
{
data elem;
struct nodo *next;
};
typedef struct nodo *lista;
struct mappa {
data R;
data C;
lista dati_mappa = NULL;
lista pos_valida = NULL;
};