Ciao a tutti!!!
Ho bisogno di una mano, devo implementare un algoritmo che mi permetta di inserire un elemento in un array di code. Ho già implementato un programmino, ma non credo che funzioni bene...
#include<stdlib.h>
#include<stdio.h>

struct struttura
{
char valore;
int numero;
struct struttura *successivo;
};

struct struttura *inizio=NULL;
struct struttura *coda=NULL;
struct struttura *nuovo;
struct struttura array[10];

int main()
{
nuovo=(struct struttura*)malloc(sizeof(struct struttura));
nuovo->numero=5;
nuovo->valore='\0';
if (==NULL)
inizio=nuovo;
else
coda->successivo=nuovo;
coda=nuovo;
coda->successivo=NULL;

}
Ora ho implementato semplicemente una struttura coda normale, ma per inserire l'elemento all'interno dell'array???
Grazie a tutti!!!