31 lines
489 B
C
31 lines
489 B
C
#include <stdio.h>
|
|
|
|
typedef int longueur;
|
|
typedef int masse;
|
|
|
|
typedef int** test;
|
|
#define tset int**
|
|
|
|
int main(){
|
|
|
|
|
|
int a=2;
|
|
int *aa=&a;
|
|
int **aaa = &aa; // aaa est un test
|
|
|
|
test *pouf1, pif1;
|
|
tset *pouf2, pif2;
|
|
|
|
pouf1 = &aaa;
|
|
pif1 = aaa;
|
|
pouf2 = &aaa;
|
|
pif2 = a;
|
|
|
|
printf("%d %d %d %d", ***pouf1, ***pouf2, **pif1, pif2);
|
|
|
|
longueur l;
|
|
printf("Quelle longueur ? ");
|
|
scanf("%u", &l);
|
|
printf("%d, c'est un excellent choix !\n",l);
|
|
}
|