What is the difference between writing typedef struct "nome1"{}"NOME2";
, as implemented in a linked list; and typedef struct{}"NOME1";
, as implemented in the sequential list I've seen.
I've also come across struct "nome1"{}typedef struct "nome1" "nome2";
. Is there a standard for writing the name in the uppercase?
Sequential listing:
typedef struct{
char nome[30];
char posicao[30];
int nrCamisa;
}JOGADOR;
typedef struct{
JOGADOR vetor[MAX];
int NroElem;
}ELENCO;
List simply chained:
typedef struct{
char nome[30];
char posicao[30];
int nrCamisa;
}JOGADOR;
typedef struct no{
JOGADOR info;
struct no* prox;
}ELENCO;