Questions tagged as 'typedef'

1
answer

Use of typedef for pointer

If I have already set a pointer to my structure because I can not allocate it. #include <stdio.h> #include <stdlib.h> struct ponto { int a, b; }; typedef struct ponto *Ponteiro; // define um ponteiro para estrutura ponto typed...
asked by 10.09.2018 / 23:06
1
answer

typedef struct syntax

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"{}ty...
asked by 19.08.2017 / 00:04
1
answer

Data structures - List differences

Please let me know the real difference between these structures below: typedef struct { int info; struct lista * prox struct lista * ant; } tipo_lista; and this: struct noCliente { int tempoUtilizandoMesa; struct noCliente *ant; str...
asked by 01.06.2017 / 15:08