C
c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Created by Guido Parlatore
#include <stdio.h>
#include <stdlib.h>
struct nodo{
int valore;
struct nodo* succ;
struct nodo* prec;
};
typedef struct nodo nodo;
nodo *newdinarray(int q){
nodo *a=malloc(sizeof(nodo));
a->valore=q;
a->succ=NULL;
a->prec=NULL;
return a;
}
void listaprint(nodo *a){
nodo *p=a;
while(p!=NULL){
printf("%d\n",p->valore);
p=p->succ;
}
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run